2018-02-12 12:21:55 +01:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-02-12 12:21:55 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-02-14 15:26:05 +01:00
|
|
|
|
using System;
|
2018-02-12 12:21:55 +01:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Communication.Contracts.Data
|
2018-02-12 12:21:55 +01:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The possible purports of a <see cref="SimpleMessage"/>.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
[Serializable]
|
2018-02-16 13:15:16 +01:00
|
|
|
|
public enum SimpleMessagePurport
|
2018-02-12 12:21:55 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
/// Requests an interlocutor to submit data for authentication.
|
2018-02-12 12:21:55 +01:00
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
Authenticate = 1,
|
2018-02-12 12:21:55 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
/// Sent from the client to the runtime to indicate that the client is ready to operate.
|
2018-02-12 12:21:55 +01:00
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
ClientIsReady,
|
2018-02-12 12:21:55 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
/// Sent from the client to the runtime to ask for the client configuration.
|
2018-02-12 12:21:55 +01:00
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
ConfigurationNeeded,
|
2018-02-20 15:15:26 +01:00
|
|
|
|
|
2018-02-27 15:28:54 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests an interlocutor to signal that the connection status is okay.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Ping,
|
|
|
|
|
|
2020-02-10 16:47:50 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sent from the runtime to the client to inform the latter that a reconfiguration was aborted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ReconfigurationAborted,
|
|
|
|
|
|
2018-02-20 15:15:26 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sent from the client to the runtime to request shutting down the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
RequestShutdown,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sent form the runtime to the client to command the latter to shut itself down.
|
|
|
|
|
/// </summary>
|
2019-07-04 09:12:28 +02:00
|
|
|
|
Shutdown,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sent from the runtime to the service to command the latter to update the system configuration.
|
|
|
|
|
/// </summary>
|
|
|
|
|
UpdateSystemConfiguration
|
2018-02-12 12:21:55 +01:00
|
|
|
|
}
|
|
|
|
|
}
|