getVotes static method

Future<PagingResult<UserVotes>> getVotes(
  1. PagingQuery<VotesQuery> pagingQuery
)

Get votes.

pagingQuery Query parameters.

Implementation

static Future<PagingResult<UserVotes>> getVotes(
    PagingQuery<VotesQuery> pagingQuery) {
  return NativeBridge.async(
          'Communities.getVotes', jsonEncode(pagingQuery.toJSON()))
      .then((result) => new PagingResult.fromJSON(jsonDecode(result),
          (Map<String, dynamic> raw) => UserVotes.fromJSON(raw)));
}