seb-win-refactoring/SafeExamBrowser.Contracts/Communication/Messages/SimpleMessagePurport.cs

47 lines
1.2 KiB
C#
Raw Normal View History

/*
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
*
* 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;
2018-02-15 15:42:54 +01:00
namespace SafeExamBrowser.Contracts.Communication.Messages
{
2018-02-15 15:42:54 +01:00
[Serializable]
public enum SimpleMessagePurport
{
/// <summary>
2018-02-15 15:42:54 +01:00
/// Requests an interlocutor to submit data for authentication.
/// </summary>
2018-02-15 15:42:54 +01:00
Authenticate = 1,
/// <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.
/// </summary>
2018-02-15 15:42:54 +01:00
ClientIsReady,
/// <summary>
2018-02-15 15:42:54 +01:00
/// Sent from the client to the runtime to ask for the client configuration.
/// </summary>
2018-02-15 15:42:54 +01:00
ConfigurationNeeded,
/// <summary>
/// Requests an interlocutor to signal that the connection status is okay.
/// </summary>
Ping,
/// <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>
Shutdown
}
}