diff --git a/src/app/models/comment.ts b/src/app/models/comment.ts index b8d4dbf21556b3166978963ff031642e9656b798..51308497b63173c3fd82e5b424ddec59f65f36d1 100644 --- a/src/app/models/comment.ts +++ b/src/app/models/comment.ts @@ -1,3 +1,5 @@ +import { CorrectWrong } from './correct-wrong.enum'; + export class Comment { id: string; roomId: string; @@ -5,7 +7,7 @@ export class Comment { revision: string; body: string; read: boolean; - correct: boolean; + correct: CorrectWrong; favorite: boolean; timestamp: Date; score: number; @@ -17,7 +19,7 @@ export class Comment { userId: string = '', body: string = '', read: boolean = false, - correct: boolean = false, + correct: CorrectWrong = CorrectWrong.NULL, favorite: boolean = false, creationTimestamp: Date = null, score: number = 0, diff --git a/src/app/models/correct-wrong.enum.ts b/src/app/models/correct-wrong.enum.ts new file mode 100644 index 0000000000000000000000000000000000000000..6448e3799c09535ed1b19239e26c5b333c252e29 --- /dev/null +++ b/src/app/models/correct-wrong.enum.ts @@ -0,0 +1,5 @@ +export enum CorrectWrong { + NULL, + CORRECT, + WRONG +}