2020-07-13 22:57:19 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2020-07-13 22:57:19 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using SafeExamBrowser.Core.Contracts.OperationModel.Events;
|
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Runtime.Operations.Events
|
|
|
|
|
{
|
|
|
|
|
internal class ServerFailureEventArgs : ActionRequiredEventArgs
|
|
|
|
|
{
|
|
|
|
|
public bool Abort { get; set; }
|
|
|
|
|
public bool Fallback { get; set; }
|
|
|
|
|
public string Message { get; set; }
|
|
|
|
|
public bool Retry { get; set; }
|
2020-07-24 18:22:22 +02:00
|
|
|
|
public bool ShowFallback { get; }
|
2020-07-13 22:57:19 +02:00
|
|
|
|
|
2020-07-24 18:22:22 +02:00
|
|
|
|
public ServerFailureEventArgs(string message, bool showFallback)
|
2020-07-13 22:57:19 +02:00
|
|
|
|
{
|
|
|
|
|
Message = message;
|
2020-07-24 18:22:22 +02:00
|
|
|
|
ShowFallback = showFallback;
|
2020-07-13 22:57:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|