blob: e0fcd5b1dc56829789e15f7a4c6910947a7074cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
import { Guid } from 'guid-typescript';
import { Comment } from './comment.model';
import { PostComment } from './post-comment.model';
export class Post {
private _postId: Guid;
private _creatorFirstName: string;
private _creatorLastName: string;
private _creatorUsername: string;
private _message: string;
private _timeCreated: Date;
private _comments: PostComment[];
private _fileURLs: string[];
constructor(postId: Guid, creatorFirstName: string, creatorLastName: string, creatorUsername: string, message: string, timeCreated: Date, comments: PostComment[], fileURLs: string[]) {
this.postId = postId;
this.creatorFirstName = creatorFirstName;
this.creatorLastName = creatorLastName;
this.creatorUsername = creatorUsername;
this.message = message;
this.timeCreated = timeCreated;
this.comments = comments;
this.fileURLs = fileURLs;
}
public get postId(): Guid {
return this._postId;
}
public set postId(v: Guid) {
this._postId = v;
}
public get creatorFirstName(): string {
return this._creatorFirstName;
}
public set creatorFirstName(v: string) {
this._creatorFirstName = v;
}
public get creatorLastName(): string {
return this._creatorLastName;
}
public set creatorLastName(v: string) {
this._creatorLastName = v;
}
public get creatorUsername(): string {
return this._creatorUsername;
}
public set creatorUsername(v: string) {
this._creatorUsername = v;
}
public get message(): string {
return this._message;
}
public set message(v: string) {
this._message = v;
}
public get timeCreated(): Date {
return this._timeCreated;
}
public set timeCreated(v: Date) {
this._timeCreated = v;
}
public get comments(): PostComment[] {
return this._comments;
}
public set comments(v: PostComment[]) {
this._comments = v;
}
public get fileURLs(): string[] {
return this._fileURLs;
}
public set fileURLs(v: string[]) {
this._fileURLs = v;
}
}
|