コード例 #1
0
        public async void EmailVerification()
        {
            try
            {
                var result = await client.EmailVerification(null, provider_id);

                Debug.WriteLine("RESULT");
                if (result != null && result.code.Equals(200))
                {
                    Debug.WriteLine("ERROR PERFORMING SIGN IN RESULT " + result.data);
                    if (result.data.Equals(false))
                    {
                        RegisterOauthUser();
                    }
                    else
                    {
                        LoginOauth();
                    }
                }
                else
                {
                    errorMessage = result.message;
                    RaisePropertyChanged(() => ErrorMessage);
                    //Debug.WriteLine("ERROR PERFORMING SIGN IN RESULT " + result.message);
                }
            }
            catch (HttpRequestException hre)
            {
                Debug.WriteLine("ERROR PERFORMING SIGN IN HTTPREQUEST");
            }
        }
コード例 #2
0
        public async void EmailVerification()
        {
            try
            {
                var result = await client.EmailVerification(email, null);

                Debug.WriteLine("RESULT");
                if (result != null && result.code.Equals(200))
                {
                    Debug.WriteLine("ERROR PERFORMING SIGN IN RESULT " + result.data);


                    errorMessage = result.data;
                    if (errorMessage.Equals(true))
                    {
                        RaisePropertyChanged(() => ErrorMessage);
                    }
                    else
                    {
                        showSignup3();
                    }
                }
                else
                {
                    errorMessage = result.data;
                    RaisePropertyChanged(() => ErrorMessage);
                    //Debug.WriteLine("ERROR PERFORMING SIGN IN RESULT " + result.message);
                }
            }
            catch (HttpRequestException hre)
            {
                Debug.WriteLine("ERROR PERFORMING SIGN IN HTTPREQUEST");
            }
        }