aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Net/WebSocketMessages/Outbound/GeneralCommandMessage.cs
blob: 5fbbb06242e63e42f31a03f05b81efe1cea886e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.ComponentModel;
using MediaBrowser.Model.Session;

namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;

/// <summary>
/// General command websocket message.
/// </summary>
public class GeneralCommandMessage : OutboundWebSocketMessage<GeneralCommand>
{
    /// <summary>
    /// Initializes a new instance of the <see cref="GeneralCommandMessage"/> class.
    /// </summary>
    /// <param name="data">The general command.</param>
    public GeneralCommandMessage(GeneralCommand data)
        : base(data)
    {
    }

    /// <inheritdoc />
    [DefaultValue(SessionMessageType.GeneralCommand)]
    public override SessionMessageType MessageType => SessionMessageType.GeneralCommand;
}