public int SetCopyPlayerIdWithOTPCallback(Session.CopyPlayerIdWithOTPDelegate callback) { if (null == callback) { return(0); } int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message) { Log.Debug("[SessionCallback] CopyPlayerIdWithOTPCallback: " + message.ToString()); Result result = message.GetResult(); RestrictOTPInput restrictOTPInput = null; IDictionary restrictOTPInputDic = message.GetDictionary("restrictOTPInput"); if (null != restrictOTPInputDic) { int failCount = restrictOTPInputDic.GetInt("failCount"); string retryDateTime = restrictOTPInputDic.GetString("retryDateTime"); restrictOTPInput = new RestrictOTPInput(failCount, retryDateTime); } if (null != callback) { callback(result, restrictOTPInput); } }); return(handlerNum); }
public void CopyPlayerIdWithOTP(string otp, Session.CopyPlayerIdWithOTPDelegate callback) { int handlerNum = sessionCallback.SetCopyPlayerIdWithOTPCallback(callback); nmg_session_copyPlayerIdWithOTP(otp, handlerNum); }
public void CopyPlayerIdWithOTP(string otp, Session.CopyPlayerIdWithOTPDelegate callback) { }
public void CopyPlayerIdWithOTP(string otp, Session.CopyPlayerIdWithOTPDelegate callback) { int handlerNum = sessionCallback.SetCopyPlayerIdWithOTPCallback(callback); sessionAndroidClass.CallStatic("nmg_session_copyPlayerIdWithOTP", otp, handlerNum); }