getPoll

abstract suspend fun getPoll(pollId: String, roomId: String): RainbowResult<Poll>

Get a specific poll with its Id and the if of the room it is associated to.

This API allows any member or a room to get a specific poll, given the poll id and the room id it is associated too. The method still respects the check of access right:

  • Room organizer has access to any poll in the room

  • Room member has only access polls that have already been published

Return

A RainbowResult containing the Poll on success. In case of failure, the RainbowResult will contain error details.

Parameters

pollId

The unique identifier of the poll.

roomId

The unique identifier of the room.