Batch.Internal.UnlockModule.OnRedeemURLCodeFound C# (CSharp) Метод

OnRedeemURLCodeFound() публичный Метод

public OnRedeemURLCodeFound ( string response ) : void
response string
Результат void
        public void OnRedeemURLCodeFound(string response)
        {
            try
            {
                Response answer = new Response(response);

                string code = answer.GetCode();
                if (code == null)
                {
                    throw new NullReferenceException("The returned code is null.");
                }

                if (RedeemURLCodeFound != null)
                {
                    RedeemURLCodeFound(code);
                }
            }
            catch (Exception e)
            {
                Logger.Error(true, "onRedeemURLCodeFound", e);
            }
        }