コード例 #1
0
        private async Task <bool> UpdateAddress(string words)
        {
            var address = _ethereumService.GetAddress(words);
            var result  = false;

            try
            {
                result = await _requestProvider
                         .PostAsync <UserModel, bool>(GlobalSetting.Instance.UpdateAddressEndpoint,
                                                      new UserModel
                {
                    Address          = address,
                    PhoneNumber      = (string)Settings.Get(Settings.Key.PhoneNumber),
                    VerificationCode = (string)Settings.Get(Settings.Key.VerificationCode)
                });
            }
            catch (Exception e)
            {
                Debug.WriteLine($"--- Error: {e.StackTrace}");
            }

            return(result);
        }