AmityPollRepository

Functions

Link copied to clipboard
fun closePoll(pollId: String): Completable

Closes a poll

Link copied to clipboard

Initiates a function chain to create a poll

Link copied to clipboard
fun deletePoll(pollId: String): Completable

Deletes a poll

Link copied to clipboard
fun getPoll(pollId: String): Flowable<AmityPoll>

Gets a LiveObject of poll

Link copied to clipboard
fun vote(pollId: String, answerIds: List<String>): Completable

Votes a poll

Link copied to clipboard
fun votePoll(pollId: String, answerIds: List<String>): Completable

Votes a poll