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); }
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); } }
public void RequestMyProfile(Google.RequestMyProfileDelegate callback) { }
public void RequestMyProfile(Google.RequestMyProfileDelegate callback) { int handlerNum = googleCallback.SetRequestMyProfileCalblack(callback); googleAndroidClass.CallStatic("nmg_google_requestMyProfile", handlerNum); }