From b0889f44e1e0b93539d878c9771b24a96d935c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Thu, 21 Mar 2019 13:33:17 +0100 Subject: [PATCH] Create patch-voting-class --- src/app/models/messages/patch-voting.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/app/models/messages/patch-voting.ts diff --git a/src/app/models/messages/patch-voting.ts b/src/app/models/messages/patch-voting.ts new file mode 100644 index 000000000..500577f74 --- /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 + }; + } +} -- GitLab