aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Net/WebSocketMessage.cs
blob: c02bcd70b6dfaed0949389d692b66cf41127e173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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; }
}