/**
 * A vote for a given choice
 */ export class Vote { public constructor ( public id , public choiceId , public comment ? ) { } } /**
 * A choice to vote for within a Poll
 */ export class Choice { public count : number ; public constructor ( public id , public pollId , public text ) { this . count = 0 ; } } /**
 * A topic with which user is offered multiple choices to vote for
 */ export class Poll { public choices : Choice [ ] ; public constructor ( public id , public topic , choices ? ) { this . choices = choices !== undefined ? choices : [ ] ; } } /**
 * An intention of voting a given choice with an optional comment
 */ export interface ChoiceVote { choiceId : number ; comment ? : string ; }