mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
20 lines
577 B
TypeScript
20 lines
577 B
TypeScript
|
import { PollType } from '../enums/poll-type.enum';
|
||
|
import { Answer } from './answer.model';
|
||
|
import { PollConfig } from './poll-config.model';
|
||
|
import { PollOption } from './poll-options.model';
|
||
|
import { User } from './user.model';
|
||
|
|
||
|
export class Poll {
|
||
|
constructor(
|
||
|
public id: string,
|
||
|
public slug: string,
|
||
|
public type: PollType,
|
||
|
public title: string,
|
||
|
public description: string,
|
||
|
public owner: User,
|
||
|
public config: PollConfig,
|
||
|
public options: PollOption[] = [],
|
||
|
public answers: Answer[] = []
|
||
|
) {}
|
||
|
}
|