Beispiel #1
0
        public async Task Fix(ErrorFix errorFix)
        {
            switch (errorFix)
            {
            case ErrorFix.Logout:
                if (_localLoginService.IsAuthenticated)
                {
                    await _localLoginService.LocalLogout();

                    _toastService.ShowInfo(_textService.Toast_AppDidAutomaticLogout, _textService.Toast_Info);
                }
                break;

            case ErrorFix.WrongVersion:
                _navigationService.ForceReload();
                Console.WriteLine("After Fix of versions");
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(errorFix), errorFix, null);
            }
        }
 public FixResponseDto(string message, ErrorFix errorFix)
 {
     Message  = message;
     ErrorFix = errorFix;
 }