private void _ParseResponse(string response) { try { SidDataResponse sid = SerializeHelper.Deserialise <SidDataResponse>(response); _callback(sid); } catch (Exception) { Debug.WriteLine("Parse response from Auth Sign Up failed."); _callback(null); } }
private void _WaitSms(SidDataResponse sid) { this.Dispatcher.BeginInvoke(() => { if (sid != null && sid.SidData != null && !string.IsNullOrEmpty(sid.SidData.Sid)) { _sid = sid.SidData.Sid; _SwitchUIToStep2(); } else { MessageBox.Show(AppResources.SignUpFailed); } GlobalIndicator.Instance.Text = string.Empty; GlobalIndicator.Instance.IsLoading = false; _SetSignUpButtonEnabling(); }); }