20 lines
517 B
TypeScript
20 lines
517 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[] = []
|
|
) {}
|
|
}
|