2020-07-31 20:35:18 +02:00
|
|
|
|
/*
|
2021-02-03 00:45:33 +01:00
|
|
|
|
* Copyright (c) 2021 ETH Zürich, Educational Development and Technology (LET)
|
2020-07-31 20:35:18 +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 System;
|
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Communication.Contracts.Data
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The reply to a <see cref="ServerFailureActionRequestMessage"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerFailureActionReplyMessage : Message
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user chose to abort the operation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Abort { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user chose to perform a fallback.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Fallback { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user chose to retry the operation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Retry { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Identifies the server failure action request.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid RequestId { get; set; }
|
|
|
|
|
|
|
|
|
|
public ServerFailureActionReplyMessage(bool abort, bool fallback, bool retry, Guid requestId)
|
|
|
|
|
{
|
|
|
|
|
Abort = abort;
|
|
|
|
|
Fallback = fallback;
|
|
|
|
|
Retry = retry;
|
|
|
|
|
RequestId = requestId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|