/* * 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 { /// /// This message is transmitted to the client to request a server failure action selection by the user. /// [Serializable] public class ServerFailureActionRequestMessage : Message { /// /// The server failure message, if available. /// public string Message { get; set; } /// /// Indicates whether the fallback option should be shown to the user. /// public bool ShowFallback { get; set; } /// /// The unique identifier for the server failure action selection request. /// public Guid RequestId { get; } public ServerFailureActionRequestMessage(string message, bool showFallback, Guid requestId) { Message = message; ShowFallback = showFallback; RequestId = requestId; } } }