2018-02-14 15:26:05 +01:00
/ *
2024-03-05 18:37:42 +01:00
* Copyright ( c ) 2024 ETH Zürich , IT Services
2018-02-14 15:26:05 +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-15 15:42:54 +01:00
using System ;
2019-08-30 09:55:26 +02:00
namespace SafeExamBrowser.Communication.Contracts.Data
2018-02-14 15:26:05 +01:00
{
2018-03-06 11:38:12 +01:00
/// <summary>
/// The base class for messages, from which a message must inherit in order to be sent to an interlocutor via <see cref="ICommunication.Send(Message)"/>.
/// </summary>
2018-02-15 15:42:54 +01:00
[Serializable]
2018-02-27 15:28:54 +01:00
public abstract class Message
2018-02-14 15:26:05 +01:00
{
/// <summary>
2018-02-15 15:42:54 +01:00
/// The communication token needed for authentication.
2018-02-14 15:26:05 +01:00
/// </summary>
2018-02-15 15:42:54 +01:00
public Guid CommunicationToken { get ; set ; }
2018-02-16 13:15:16 +01:00
public override string ToString ( )
{
return GetType ( ) . Name ;
}
2018-02-14 15:26:05 +01:00
}
}