2020-05-04 16:54:31 +02:00
|
|
|
import * as moment from 'moment';
|
2020-04-19 14:22:10 +02:00
|
|
|
|
|
|
|
export class PollOption {
|
2020-04-21 17:26:25 +02:00
|
|
|
constructor(public label: string, public url?: string, public subOptions?: PollOption[]) {}
|
2020-04-19 14:22:10 +02:00
|
|
|
|
2020-04-21 17:26:25 +02:00
|
|
|
public isDatePoll(): boolean {
|
2020-05-04 16:54:31 +02:00
|
|
|
return moment(this.label).isValid();
|
2020-04-21 17:26:25 +02:00
|
|
|
}
|
2020-04-19 14:22:10 +02:00
|
|
|
}
|