25 lines
414 B
TypeScript
25 lines
414 B
TypeScript
|
/**
|
||
|
* une option de date dans les sondages spéciaux
|
||
|
*/
|
||
|
export interface DateOption {
|
||
|
text: string;
|
||
|
start?: string;
|
||
|
end?: string;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* configuration
|
||
|
*/
|
||
|
export class PollConfig {
|
||
|
step = 0;
|
||
|
stepMax = 3;
|
||
|
pollType = 'classic';
|
||
|
title = '';
|
||
|
description = '';
|
||
|
// date specific poll
|
||
|
allowSeveralHours = false;
|
||
|
dateList: DateOption[] = [];
|
||
|
answers: string[] = [];
|
||
|
|
||
|
}
|