public void SetJson(JGetFriend json, ApiBridge.FriendType friendType) { switch (friendType) { case ApiBridge.FriendType.FriendList: isSettingJsonFriendList = true; listFriends = json.friends; isSettingJsonFriendList = false; break; case ApiBridge.FriendType.FriendRequestMe: isSettingJsonFriendReqMe = true; reqMeFriends = json.friends; isSettingJsonFriendReqMe = false; break; } }
public void GetFriend(int friendID = 0, ApiBridge.FriendType friendType = ApiBridge.FriendType.FriendList) { api.GetFriend(friendID, friendType); }