Пример #1
0
    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;
        }
    }
Пример #2
0
 public void GetFriend(int friendID = 0, ApiBridge.FriendType friendType = ApiBridge.FriendType.FriendList)
 {
     api.GetFriend(friendID, friendType);
 }