2020-04-19 14:22:10 +02:00
|
|
|
import { Answer } from './answer.model';
|
2020-05-05 18:17:12 +02:00
|
|
|
import { Choice } from './choice.model';
|
|
|
|
import { Comment } from './comment.model';
|
|
|
|
import { Configuration } from './configuration.model';
|
|
|
|
import { Question } from './question.model';
|
2020-04-19 14:22:10 +02:00
|
|
|
import { User } from './user.model';
|
|
|
|
|
|
|
|
export class Poll {
|
2020-04-21 17:26:25 +02:00
|
|
|
constructor(
|
2020-05-05 18:17:12 +02:00
|
|
|
public owner: User,
|
|
|
|
public question: Question,
|
|
|
|
public choices: Choice[],
|
|
|
|
public configuration: Configuration = new Configuration(),
|
|
|
|
public answers: Answer[] = [],
|
|
|
|
public comments: Comment[] = []
|
2020-04-21 17:26:25 +02:00
|
|
|
) {}
|
2020-04-19 14:22:10 +02:00
|
|
|
}
|