aboutsummaryrefslogtreecommitdiff
path: root/src/models/post.model.ts
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-14 21:48:04 +0200
committerGitHub <noreply@github.com>2021-03-14 21:48:04 +0200
commit8bd52ec0e9a58405376b0a9ac08ce8e35bad8599 (patch)
tree2b836291af4bc6801d7d809c828eb3e7d58a027a /src/models/post.model.ts
parent988c09b9233fd356b056b62593494772a2061993 (diff)
parente4fc300d2fe82084c67c50258c76b60248850863 (diff)
downloadDevHive-Angular-8bd52ec0e9a58405376b0a9ac08ce8e35bad8599.tar
DevHive-Angular-8bd52ec0e9a58405376b0a9ac08ce8e35bad8599.tar.gz
DevHive-Angular-8bd52ec0e9a58405376b0a9ac08ce8e35bad8599.zip
Merge pull request #2 from Team-Kaleidoscope/rating_system
Rating system
Diffstat (limited to 'src/models/post.model.ts')
-rw-r--r--src/models/post.model.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/models/post.model.ts b/src/models/post.model.ts
index e0fcd5b..9751c26 100644
--- a/src/models/post.model.ts
+++ b/src/models/post.model.ts
@@ -11,8 +11,9 @@ export class Post {
private _timeCreated: Date;
private _comments: PostComment[];
private _fileURLs: string[];
+ private _currentRating: number;
- constructor(postId: Guid, creatorFirstName: string, creatorLastName: string, creatorUsername: string, message: string, timeCreated: Date, comments: PostComment[], fileURLs: string[]) {
+ constructor(postId: Guid, creatorFirstName: string, creatorLastName: string, creatorUsername: string, message: string, timeCreated: Date, comments: PostComment[], fileURLs: string[], currentRating: number) {
this.postId = postId;
this.creatorFirstName = creatorFirstName;
this.creatorLastName = creatorLastName;
@@ -21,6 +22,7 @@ export class Post {
this.timeCreated = timeCreated;
this.comments = comments;
this.fileURLs = fileURLs;
+ this.currentRating = currentRating;
}
public get postId(): Guid {
@@ -78,4 +80,11 @@ export class Post {
public set fileURLs(v: string[]) {
this._fileURLs = v;
}
+
+ public get currentRating(): number {
+ return this._currentRating;
+ }
+ public set currentRating(v: number) {
+ this._currentRating = v;
+ }
}