public string Get() { GetFriendsParams actionParams = JavaScriptConvert.DeserializeObject <GetFriendsParams>(JsonParams); Dictionary <int, int[]> friendListTable = new Dictionary <int, int[]>(); foreach (int uid in actionParams.UIds) { List <int> friendUidList = new List <int>(); List <FriendshipInfo> friendshipList = Friendship.GetUserFriendsList(uid, 1, actionParams.FriendNum); foreach (FriendshipInfo friendUid in friendshipList) { friendUidList.Add(friendUid.FriendUid); } friendListTable.Add(uid, friendUidList.ToArray()); } return(GetResult(friendListTable)); }
public Task <IEnumerable <UserInfo> > GetFriendsAsync(GetFriendsParams parameters) { return(MakeRequestAsync <IEnumerable <UserInfo> >(parameters)); }