47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
/*
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
|
*
|
|
* 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;
|
|
}
|
|
}
|
|
}
|