public override int GetHashCode() { int hash = 1; if (IsSucceed != false) { hash ^= IsSucceed.GetHashCode(); } if (ServerUTCTime != 0) { hash ^= ServerUTCTime.GetHashCode(); } if (Key != 0) { hash ^= Key.GetHashCode(); } if (LimitTime != 0) { hash ^= LimitTime.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
async void sendMessage() { try { string message = EntryMess.Text; //if (string.IsNullOrWhiteSpace(message)) //{ // EntryMess.Text = string.Empty; // return; //} var anim = new Task(async() => { IconViewSend.Scale = 0.7; await Task.Delay(TimeSpan.FromSeconds(0.5)); IconViewSend.Scale = 1; }); anim.Start(); if (!string.IsNullOrWhiteSpace(message)) { // progress.IsVisible = true; IconViewSend.IsEnabled = false; IsSucceed result = await _server.AddMessageTech(message, Settings.Person.Phone); if (result.isSucceed) { EntryMess.Text = ""; // await ShowToast(AppResources.MessageSent); //await RefreshData(); var lastChild = baseForApp.Children.LastOrDefault(); if (lastChild != null) { Device.BeginInvokeOnMainThread(async() => await scrollFroAppMessages.ScrollToAsync(lastChild, ScrollToPosition.End, true)); } } } else { await ShowToast(AppResources.ErrorMessageEmpty); } // progress.IsVisible = false; IconViewSend.IsEnabled = true; } catch (Exception e) { await ShowToast(AppResources.MessageNotSent); // progress.IsVisible = false; IconViewSend.IsEnabled = true; } }