2018-12-14 12:31:31 +01:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2018-12-14 12:31:31 +01: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;
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Communication.Contracts.Data
|
2018-12-14 12:31:31 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This message is transmitted to the client to request a message box input by the user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class MessageBoxRequestMessage : Message
|
|
|
|
|
{
|
2019-08-30 09:55:26 +02:00
|
|
|
|
// TODO
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// The action to be displayed.
|
|
|
|
|
///// </summary>
|
|
|
|
|
//public MessageBoxAction Action { get; private set; }
|
2018-12-14 12:31:31 +01:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
///// <summary>
|
|
|
|
|
///// The icon to be displayed.
|
|
|
|
|
///// </summary>
|
|
|
|
|
//public MessageBoxIcon Icon { get; private set; }
|
2018-12-14 12:31:31 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The message to be displayed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Message { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Identifies the message box request.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid RequestId { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The title to be displayed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Title { get; private set; }
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
public MessageBoxRequestMessage(/*MessageBoxAction action, MessageBoxIcon icon, */string message, Guid requestId, string title)
|
2018-12-14 12:31:31 +01:00
|
|
|
|
{
|
2019-08-30 09:55:26 +02:00
|
|
|
|
// TODO
|
|
|
|
|
//Action = action;
|
|
|
|
|
//Icon = icon;
|
2018-12-14 12:31:31 +01:00
|
|
|
|
Message = message;
|
|
|
|
|
RequestId = requestId;
|
|
|
|
|
Title = title;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|