diff --git a/src/app/models/messages/patch-voting.ts b/src/app/models/messages/patch-voting.ts new file mode 100644 index 0000000000000000000000000000000000000000..500577f7401a23dec9098f96129d7a4ba2cbf506 --- /dev/null +++ b/src/app/models/messages/patch-voting.ts @@ -0,0 +1,17 @@ +export class PatchVoting { + type: string; + payload: { + userId: string; + commentId: string; + vote: number; + }; + + constructor(userId: string, commentId: string, vote: number) { + this.type = 'PatchComment'; + this.payload = { + userId: userId, + commentId: commentId, + vote: vote + }; + } +}