PollOptionGetRequest constructor

PollOptionGetRequest({
  1. required int pollId,
  2. required int pollOptionId,
  3. required String channelUrl,
  4. required ChannelType channelType,
})

Implementation

PollOptionGetRequest({
  required int pollId,
  required int pollOptionId,
  required String channelUrl,
  required ChannelType channelType,
}) {
  url = 'polls/$pollId/options/$pollOptionId';
  queryParams = {
    'channel_url': channelUrl,
    'channel_type': channelType.urlString,
  };
}