Exemplo n.º 1
0
    protected override void OnDataChanged(List <User> list)
    {
        if (list.Count == 0)
        {
            return;
        }
        var users = UserIdList.Create(list.ConvertAll(it => it.Id));

        Communities.AreFriends(users, areFriends =>
        {
            _areFriends.AddAll(areFriends);
        }, error => _console.LogE(error.Message));
        Communities.IsFollowing(UserId.CurrentUser(), FollowQuery.Users(users), follows =>
        {
            _follows.AddAll(follows);
        }, error => _console.LogE(error.Message));
    }