2020-04-05 16:10:56 +00:00
|
|
|
#nullable disable
|
2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-12-17 22:15:02 +00:00
|
|
|
using System;
|
2020-09-25 07:25:59 +00:00
|
|
|
using MediaBrowser.Model.Session;
|
2019-12-17 22:15:02 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Model.Net
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-04 00:49:27 +00:00
|
|
|
/// Class WebSocketMessage.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
2021-02-20 22:13:04 +00:00
|
|
|
/// <typeparam name="T">The type of the data.</typeparam>
|
2018-12-27 23:27:57 +00:00
|
|
|
public class WebSocketMessage<T>
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the message.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type of the message.</value>
|
2020-09-25 07:25:59 +00:00
|
|
|
public SessionMessageType MessageType { get; set; }
|
2019-12-17 22:15:02 +00:00
|
|
|
|
|
|
|
public Guid MessageId { get; set; }
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
public string ServerId { get; set; }
|
2020-02-04 00:49:27 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the data.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The data.</value>
|
|
|
|
public T Data { get; set; }
|
|
|
|
}
|
|
|
|
}
|