2018-09-13 09:23:57 +02:00
|
|
|
import { Deserializer } from '../base/deserializer';
|
2018-07-12 14:11:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Representation of a poll option
|
|
|
|
*
|
|
|
|
* part of the 'polls-options'-array in poll
|
|
|
|
* @ignore
|
|
|
|
*/
|
2018-09-10 11:15:12 +02:00
|
|
|
export class PollOption extends Deserializer {
|
2018-08-29 13:21:25 +02:00
|
|
|
public id: number;
|
|
|
|
public candidate_id: number;
|
|
|
|
public is_elected: boolean;
|
|
|
|
public votes: number[];
|
|
|
|
public poll_id: number;
|
|
|
|
public weight: number;
|
2018-07-12 14:11:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Needs to be completely optional because poll has (yet) the optional parameter 'poll-options'
|
2018-09-04 11:33:28 +02:00
|
|
|
* @param input
|
2018-07-12 14:11:31 +02:00
|
|
|
*/
|
2018-09-04 11:33:28 +02:00
|
|
|
public constructor(input?: any) {
|
2018-09-10 11:15:12 +02:00
|
|
|
super(input);
|
2018-07-12 14:11:31 +02:00
|
|
|
}
|
|
|
|
}
|