2020-04-19 14:22:10 +02:00
|
|
|
import { AnswerGranularity } from '../enums/answer-granularity.enum';
|
|
|
|
|
|
|
|
export class PollConfig {
|
2020-04-21 17:26:25 +02:00
|
|
|
constructor(
|
|
|
|
public allowSeveralHours = true,
|
|
|
|
public isVisibleToAnyoneWithTheLink: boolean = true,
|
|
|
|
public answerType: AnswerGranularity = AnswerGranularity.BASIC,
|
|
|
|
public creationDate: Date = new Date(),
|
|
|
|
public expirationDate?: Date,
|
|
|
|
public canVotersModifyTheirAnswers = true,
|
|
|
|
public isProtectedByPassword: boolean = false
|
|
|
|
) {}
|
2020-04-19 14:22:10 +02:00
|
|
|
}
|