listVote method
Future<ListModelResponse<TranslationVote> >
listVote({
- Translation? translation,
- int limit = 50,
- int skip = 0,
List all votes by translation. Parameters
translation
filter by translationlimit
limit the number of results. (max 50)skip
skip the first n results.
Implementation
Future<ListModelResponse<TranslationVote>> listVote(
{Translation? translation, int limit = 50, int skip = 0}) async {
APIHttpResponse response = await httpClient.get('/translate/vote/', query: {
if (translation != null) 'translationUUID': translation.uuid,
'limit': limit.toString(),
'skip': skip.toString(),
});
return ListModelResponse.fromMap<TranslationVote>(response.data);
}