mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 08:35:17 +00:00
Can set new survey attribute
This commit is contained in:
@ -8,7 +8,8 @@ export interface NewSurveyBuilder {
|
||||
postID?: number,
|
||||
userID: number,
|
||||
question: string,
|
||||
choices: Array<string>
|
||||
choices: Array<string>,
|
||||
allowNewChoices: boolean
|
||||
}
|
||||
|
||||
export class NewSurvey implements NewSurveyBuilder {
|
||||
@ -16,6 +17,7 @@ export class NewSurvey implements NewSurveyBuilder {
|
||||
userID: number;
|
||||
question: string;
|
||||
choices: string[];
|
||||
allowNewChoices: boolean;
|
||||
|
||||
public constructor(info: NewSurveyBuilder) {
|
||||
for (const key in info) {
|
||||
|
Reference in New Issue
Block a user