getPoll static method
Gets the specified forum poll.
Implementation
static Future<PostSearchResponseResponse> getPoll (
HttpClient client,
String topicId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _topicId = '$topicId';
final HttpClientConfig config = HttpClientConfig('GET', '/Forum/Poll/$_topicId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return PostSearchResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}