$PollClient class
Constructors
-
$PollClient($Client _rootClient)
-
Creates a new
DynamiteClient
for poll requests.
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$closePoll_Request({required String token, required int pollId, PollClosePollApiVersion? apiVersion, bool? oCSAPIRequest})
→ Request
-
Close a poll.
-
$closePoll_Serializer()
→ DynamiteSerializer<PollClosePollResponseApplicationJson, void>
-
Builds a serializer to parse the response of $closePoll_Request.
-
$createPoll_Request({required String token, required PollCreatePollRequestApplicationJson $body, PollCreatePollApiVersion? apiVersion, bool? oCSAPIRequest})
→ Request
-
Create a poll.
-
$createPoll_Serializer()
→ DynamiteSerializer<PollCreatePollResponseApplicationJson, void>
-
Builds a serializer to parse the response of $createPoll_Request.
-
$showPoll_Request({required String token, required int pollId, PollShowPollApiVersion? apiVersion, bool? oCSAPIRequest})
→ Request
-
Get a poll.
-
$showPoll_Serializer()
→ DynamiteSerializer<PollShowPollResponseApplicationJson, void>
-
Builds a serializer to parse the response of $showPoll_Request.
-
$votePoll_Request({required String token, required int pollId, PollVotePollApiVersion? apiVersion, bool? oCSAPIRequest, PollVotePollRequestApplicationJson? $body})
→ Request
-
Vote on a poll.
-
$votePoll_Serializer()
→ DynamiteSerializer<PollVotePollResponseApplicationJson, void>
-
Builds a serializer to parse the response of $votePoll_Request.
-
closePoll({required String token, required int pollId, PollClosePollApiVersion? apiVersion, bool? oCSAPIRequest})
→ Future<DynamiteResponse<PollClosePollResponseApplicationJson, void>>
-
Close a poll.
-
createPoll({required String token, required PollCreatePollRequestApplicationJson $body, PollCreatePollApiVersion? apiVersion, bool? oCSAPIRequest})
→ Future<DynamiteResponse<PollCreatePollResponseApplicationJson, void>>
-
Create a poll.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
showPoll({required String token, required int pollId, PollShowPollApiVersion? apiVersion, bool? oCSAPIRequest})
→ Future<DynamiteResponse<PollShowPollResponseApplicationJson, void>>
-
Get a poll.
-
toString()
→ String
-
A string representation of this object.
inherited
-
votePoll({required String token, required int pollId, PollVotePollApiVersion? apiVersion, bool? oCSAPIRequest, PollVotePollRequestApplicationJson? $body})
→ Future<DynamiteResponse<PollVotePollResponseApplicationJson, void>>
-
Vote on a poll.