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 {
createdFromLecturer: boolean;
highlighted: boolean;
ack: boolean;
tag: string;
constructor(roomId: string = '',
creatorId: string = '',
......@@ -25,7 +26,8 @@ export class Comment {
score: number = 0,
createdFromLecturer = false,
highlighted: boolean = false,
ack: boolean = true) {
ack: boolean = true,
tag: string = '') {
this.id = '';
this.roomId = roomId;
this.creatorId = creatorId;
......@@ -39,5 +41,6 @@ export class Comment {
this.createdFromLecturer = createdFromLecturer;
this.highlighted = highlighted;
this.ack = ack;
this.tag = tag;
}
}
......@@ -4,14 +4,16 @@ export class CreateComment {
roomId: string;
creatorId: 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.payload = {
roomId: roomId,
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