Package-level declarations

Functions

Link copied to clipboard
suspend fun Poll.Companion.awaitCreate(params: PollCreateParams): Poll

Builds Poll instance with given params instance. Once created successfully, Poll instance will be returned.

Link copied to clipboard
suspend fun Poll.Companion.awaitGet(params: PollRetrievalParams): Poll

Retrieves latest poll matching PollRetrievalParams.pollId instance from server. Once created successfully, Poll instance will be returned.

suspend fun PollOption.Companion.awaitGet(params: PollOptionRetrievalParams): PollOption

Fetches latest PollOption representation from the server. Once finished successfully, a PollOption instance will be returned.

Link copied to clipboard
suspend fun Poll.Companion.create(params: PollCreateParams): Poll

Builds Poll instance with given params instance. Once created successfully, Poll instance will be returned.

fun Poll.Companion.create(params: PollCreateParams, handler: ResultHandler<Poll>?)

Builds Poll instance with given params instance. Once created successfully, a non-null Poll instance will be passed to the handler.

Link copied to clipboard
suspend fun Poll.Companion.get(params: PollRetrievalParams): Poll

Retrieves latest poll matching PollRetrievalParams.pollId instance from server. Once created successfully, Poll instance will be returned.

suspend fun PollOption.Companion.get(params: PollOptionRetrievalParams): PollOption

Fetches latest PollOption representation from the server. Once finished successfully, a PollOption instance will be returned.

fun Poll.Companion.get(params: PollRetrievalParams, handler: ResultHandler<Poll>?)

Retrieves latest poll matching PollRetrievalParams.pollId instance from server. Once created successfully, a non-null Poll instance will be passed to the handler.

fun PollOption.Companion.get(params: PollOptionRetrievalParams, handler: ResultHandler<PollOption>?)

Fetches latest PollOption representation from the server. Once finished successfully, a non-null PollOption instance will be passed to the handler.