private async Task RetrieveCarTimesAsync() { var bookingsResult = await _bookingApi.GetBookingsAsync(_cancellationTokenSource.Token); DidGetBookings = bookingsResult.IsSuccess; if (DidGetBookings) { _bookings = bookingsResult.Data; } else { _toastService.LongAlert("Failed to retrieve current bookings"); } }
private async void TryOutPassword() { var isPermissionGranted = _securityManager.GiveBookingPermissionIfPasswordIsCorrect(Password); if (isPermissionGranted) { await _dialogService.ShowMessageAsync("Permission granted", "You can now use the app for booking stella", "continue"); Dismiss(); } else { var errorText = GetWrongPasswordText(); _toastService.LongAlert(errorText); } }
private void ShowToast() { toastService.LongAlert("This is a toast. this is a toast. this is a toast. htis is asdalksvnfklsklf jalkj ka akljklaj kald lkad lkad"); }