Skip to content
Snippets Groups Projects
Commit f34b2ed7 authored by Tom Käsler's avatar Tom Käsler
Browse files

Enrich comment model with tag

parent fb55e72b
No related merge requests found
...@@ -14,6 +14,7 @@ export class Comment { ...@@ -14,6 +14,7 @@ export class Comment {
createdFromLecturer: boolean; createdFromLecturer: boolean;
highlighted: boolean; highlighted: boolean;
ack: boolean; ack: boolean;
tag: string;
constructor(roomId: string = '', constructor(roomId: string = '',
creatorId: string = '', creatorId: string = '',
...@@ -25,7 +26,8 @@ export class Comment { ...@@ -25,7 +26,8 @@ export class Comment {
score: number = 0, score: number = 0,
createdFromLecturer = false, createdFromLecturer = false,
highlighted: boolean = false, highlighted: boolean = false,
ack: boolean = true) { ack: boolean = true,
tag: string = '') {
this.id = ''; this.id = '';
this.roomId = roomId; this.roomId = roomId;
this.creatorId = creatorId; this.creatorId = creatorId;
...@@ -39,5 +41,6 @@ export class Comment { ...@@ -39,5 +41,6 @@ export class Comment {
this.createdFromLecturer = createdFromLecturer; this.createdFromLecturer = createdFromLecturer;
this.highlighted = highlighted; this.highlighted = highlighted;
this.ack = ack; this.ack = ack;
this.tag = tag;
} }
} }
...@@ -4,14 +4,16 @@ export class CreateComment { ...@@ -4,14 +4,16 @@ export class CreateComment {
roomId: string; roomId: string;
creatorId: string; creatorId: string;
body: string; body: string;
tag: string;
}; };
constructor(roomId: string, creatorId: string, body: string) { constructor(roomId: string, creatorId: string, body: string, tag: string = '') {
this.type = 'CreateComment'; this.type = 'CreateComment';
this.payload = { this.payload = {
roomId: roomId, roomId: roomId,
creatorId: creatorId, creatorId: creatorId,
body: body body: body,
tag: tag
}; };
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment