Exemple #1
0
        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");
            }
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 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");
 }