export Class
PollAnswers ​
Constructor ​
ts
new PollAnswers( options )
Parameter | Type | Description |
---|---|---|
options | PollOption[] |
Properties ​
records : Object
​
Methods ​
answered( id, user_id ) ​
Checks if the user has answered an answer with the id.
Parameter | Type | Description |
---|---|---|
id | number | The id of the answer. |
user_id | number | The id of the user to check. |
Returns: boolean
update( user_id, ids ) ​
Updates the answers of a user.
Parameter | Type | Description |
---|---|---|
user_id | number | The id of the user. |
ids | number[] | The ids of the answers of the users. |
Returns: void