示例#1
0
    void CallbackFriendsInfo(IResult result)
    {
        if (result == null)
        {
            return;
        }

        if (!string.IsNullOrEmpty(result.Error))
        {
            Debug.Log("## CallbackFriendsInfo #Error = " + result.Error);
            //CLog.Log2(TAG, "## CallbackUserInfo >> HandleResult >> Error Response:" + result.Error);
        }
        else if (result.Cancelled)
        {
            //CLog.Log2(TAG, "## CallbackUserInfo >> HandleResult >> Cancelled Response:" + result.RawResult);
        }
        else if (!string.IsNullOrEmpty(result.RawResult))
        {
#if UNITY_EDITOR
            PlayerPrefHelper.SetFBFriendsResult(result.RawResult);
#endif
            string strResult = result.RawResult;
            strResult = strResult.Replace(@"\/", @"/");
            Debug.Log("## CallbackFriendsInfo >> strResult = " + strResult);

            _FBFriends     = new FBAppFriendsVO(strResult);
            _AppFriendsIDs = new List <string>();
            for (int i = 0; i < _FBFriends._packet.data.Length; i++)
            {
                if (_FBFriends._packet.data[i].installed)
                {
                    _AppFriendsIDs.Add(_FBFriends._packet.data[i].id);
                }
            }

            // 소켓통신
            //if (appFriends.Count > 0)
            //    LobbyAppFriends(appFriends.ToArray());
        }
    }