public static void GetUser(UserId userId, Action <User> success, Action <GetSocialError> failure) { GetUsers(UserIdList.CreateWithProvider(userId.Provider, userId.Id), result => { if (result.ContainsKey(userId.Id)) { success(result[userId.Id]); } else { failure(new GetSocialError(ErrorCodes.IllegalArgument, $"User does not exist: {userId}")); } }, failure); }
public static void GetUsers(UserIdList list, Action <Dictionary <string, User> > success, Action <GetSocialError> failure) { GetSocialFactory.Bridge.GetUsers(list, success, failure); }
public static void RemoveFriends(UserIdList userIds, Action <int> success, Action <GetSocialError> failure) { GetSocialFactory.Bridge.RemoveFriends(userIds, success, failure); }
public static void AreFriends(UserIdList userIds, Action <Dictionary <string, bool> > success, Action <GetSocialError> failure) { GetSocialFactory.Bridge.AreFriends(userIds, success, failure); }
public void SetFriends(UserIdList userIds, Action <int> success, Action <GetSocialError> failure) { CallAsync("Communities.setFriends", GSJson.Serialize(userIds), success, failure); }
public void AreGroupMembers(string groupId, UserIdList userIdList, Action <Dictionary <string, MembershipRole> > success, Action <GetSocialError> failure) { CallAsync("Communities.areGroupMembers", GSJson.Serialize(new AreGroupMembersBody { GroupId = groupId, UserIdList = userIdList }), success, failure); }
public void GetUsers(UserIdList list, Action <Dictionary <string, User> > onSuccess, Action <GetSocialError> onFailure) { CallAsync("Communities.getUsersByIds", GSJson.Serialize(list), onSuccess, onFailure); }
public void AreFriends(UserIdList userIds, Action <Dictionary <string, bool> > success, Action <GetSocialError> failure) { CallAsync("Communities.areFriends", GSJson.Serialize(userIds), success, failure); }
public static RemoveGroupMembersQuery Users(UserIdList userIdList, string groupId) { return(new RemoveGroupMembersQuery(userIdList, groupId)); }
public UpdateGroupMembersQuery(string groupId, UserIdList userIdList, MembershipStatus status) { this.UserIdList = userIdList; this.GroupId = groupId; this.Status = status; }
RemoveGroupMembersQuery(UserIdList userIdList, string groupId) { this.UserIdList = userIdList; this.GroupId = groupId; }
/// <summary> /// Follow users in the list. /// </summary> /// <param name="userIdList">User IDs.</param> /// <returns>new query.</returns> public static FollowQuery Users(UserIdList userIdList) { return(new FollowQuery(CommunitiesIds.Users(userIdList))); }
public static CommunitiesIds Users(UserIdList userIdList) { return(new CommunitiesIds(CommunitiesEntityType.User, userIdList.AsString())); }
public static SendNotificationTarget Users(UserIdList userIdList) { return(new SendNotificationTarget(userIdList)); }
internal SendNotificationTarget(UserIdList userIdList) { UserIdList = userIdList; PlaceholderIds = new List <string>(); }