1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 08:35:17 +00:00

Send new survey property

This commit is contained in:
2020-05-17 15:38:54 +02:00
parent 836f6783a0
commit 15b6315de8
3 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,8 @@ export interface SurveyBuilder {
timeCreate: number;
postID: number;
question: string;
choices: SurveyChoice[]
choices: SurveyChoice[];
allowNewChoices: boolean;
}
export class Survey implements SurveyBuilder {
@ -25,6 +26,7 @@ export class Survey implements SurveyBuilder {
postID: number;
question: string;
choices: SurveyChoice[];
allowNewChoices: boolean;
public constructor(info: SurveyBuilder) {
for (const key in info) {