get

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.

Since

4.15.2

Return

Poll instance.

Parameters

params

The parameters to retrieve a poll.


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

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

Return

The poll option.

Since

4.15.2

Parameters

params

parameters for retrieving poll option.


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.

Since

4.15.2

Parameters

params

parameters for retrieving poll option.

handler

The callback handler.


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.

Since

4.15.2

Parameters

params

The parameters to retrieve a poll.

handler

The handler to receive the result.