itd-api / Poll
Interface: Poll
Defined in: types/models.ts:265
Опрос внутри поста.
Properties
createdAt
ts
createdAt: string;Defined in: types/models.ts:278
hasVoted
ts
hasVoted: boolean;Defined in: types/models.ts:275
Голосовали ли вы.
id
ts
id: string;Defined in: types/models.ts:266
multipleChoice
ts
multipleChoice: boolean;Defined in: types/models.ts:271
Можно ли выбрать несколько вариантов.
options
ts
options: PollOption[];Defined in: types/models.ts:272
postId
ts
postId: string;Defined in: types/models.ts:268
Пост, которому принадлежит опрос.
question
ts
question: string;Defined in: types/models.ts:269
totalVotes
ts
totalVotes: number;Defined in: types/models.ts:273
votedOptionIds
ts
votedOptionIds: string[];Defined in: types/models.ts:277
За что проголосовали вы. Пустой массив, если голоса не было.