getFriends static method

Future<PagingResult<User>> getFriends(
  1. PagingQuery<FriendsQuery> pagingQuery
)

Get a list of friends of a user.

pagingQuery Query parameters.

Implementation

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