You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
676 B
29 lines
676 B
1 year ago
|
using System;
|
||
|
using System.Text.Json.Serialization;
|
||
|
using MediaBrowser.Model.Session;
|
||
|
|
||
|
namespace MediaBrowser.Controller.Net;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Websocket message without data.
|
||
|
/// </summary>
|
||
|
public abstract class WebSocketMessage
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Gets or sets the type of the message.
|
||
|
/// TODO make this abstract and get only.
|
||
|
/// </summary>
|
||
|
public virtual SessionMessageType MessageType { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or sets the message id.
|
||
|
/// </summary>
|
||
|
public Guid MessageId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or sets the server id.
|
||
|
/// </summary>
|
||
|
[JsonIgnore]
|
||
|
public string? ServerId { get; set; }
|
||
|
}
|