Пример #1
0
        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);
        }
Пример #2
0
        public void CopyPlayerIdWithOTP(string otp, Session.CopyPlayerIdWithOTPDelegate callback)
        {
            int handlerNum = sessionCallback.SetCopyPlayerIdWithOTPCallback(callback);

            nmg_session_copyPlayerIdWithOTP(otp, handlerNum);
        }
Пример #3
0
 public void CopyPlayerIdWithOTP(string otp, Session.CopyPlayerIdWithOTPDelegate callback)
 {
 }
Пример #4
0
        public void CopyPlayerIdWithOTP(string otp, Session.CopyPlayerIdWithOTPDelegate callback)
        {
            int handlerNum = sessionCallback.SetCopyPlayerIdWithOTPCallback(callback);

            sessionAndroidClass.CallStatic("nmg_session_copyPlayerIdWithOTP", otp, handlerNum);
        }