aboutsummaryrefslogtreecommitdiff
path: root/src/models/post.ts
diff options
context:
space:
mode:
authorKamen Mladenov <kamen.d.mladenov@protonmail.com>2021-03-14 09:11:46 +0200
committerGitHub <noreply@github.com>2021-03-14 09:11:46 +0200
commitd2d4452bfa4861458bc0ba6a618c2a27decc8051 (patch)
tree4cb5a0352865cbab3c5ae93141be9b7b2dae53df /src/models/post.ts
parentd8ffe52b67e983b9b317b2e5dcb138ac996eaa31 (diff)
parente3a8875e64c25a6e46380c4d003beac5953fd3e9 (diff)
downloadDevHive-Angular-d2d4452bfa4861458bc0ba6a618c2a27decc8051.tar
DevHive-Angular-d2d4452bfa4861458bc0ba6a618c2a27decc8051.tar.gz
DevHive-Angular-d2d4452bfa4861458bc0ba6a618c2a27decc8051.zip
Merge pull request #1 from Team-Kaleidoscope/code-refactor
Code refactor
Diffstat (limited to 'src/models/post.ts')
-rw-r--r--src/models/post.ts81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/models/post.ts b/src/models/post.ts
deleted file mode 100644
index 8e58bea..0000000
--- a/src/models/post.ts
+++ /dev/null
@@ -1,81 +0,0 @@
-import { Guid } from 'guid-typescript';
-import { Comment } from './comment';
-import { PostComment } from './post-comment';
-
-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;
- }
-}