コード例 #1
0
        public int SetRequestMyProfileCalblack(Google.RequestMyProfileDelegate callback)
        {
            if (null == callback)
            {
                return(0);
            }

            int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message)
            {
                Log.Debug("[GoogleCallback] RequestMyProfileCalblack: " + message.ToString());

                Result result          = message.GetResult();
                GoogleProfile profile  = null;
                IDictionary profileDic = message.GetDictionary("googleProfile");
                if (null != profileDic)
                {
                    string playerId        = profileDic.GetString("playerId");
                    string googleId        = profileDic.GetString("googleId");
                    string nickname        = profileDic.GetString("nickname");
                    string profileImageUrl = profileDic.GetString("profileImageUrl");
                    profile = new GoogleProfile(playerId, googleId, nickname, profileImageUrl);
                }

                if (null != callback)
                {
                    callback(result, profile);
                }
            });

            return(handlerNum);
        }
コード例 #2
0
 public void RequestMyProfile(Google.RequestMyProfileDelegate callback)
 {
     Log.Debug("[GoogleiOS] not supported API");
     if (null != callback)
     {
         Result result = new Result(Result.NETMARBLES_DOMAIN, Result.NOT_SUPPORTED, "Not supported channel");
         callback(result, null);
     }
 }
コード例 #3
0
 public void RequestMyProfile(Google.RequestMyProfileDelegate callback)
 {
 }
コード例 #4
0
        public void RequestMyProfile(Google.RequestMyProfileDelegate callback)
        {
            int handlerNum = googleCallback.SetRequestMyProfileCalblack(callback);

            googleAndroidClass.CallStatic("nmg_google_requestMyProfile", handlerNum);
        }