mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
* Further split inbound and outbound messages * Fix datatype for inbound start messages * fixes from review
26 lines
756 B
C#
26 lines
756 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using MediaBrowser.Controller.Session;
|
|
using MediaBrowser.Model.Session;
|
|
|
|
namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;
|
|
|
|
/// <summary>
|
|
/// Sessions message.
|
|
/// </summary>
|
|
public class SessionsMessage : OutboundWebSocketMessage<IReadOnlyList<SessionInfo>>
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SessionsMessage"/> class.
|
|
/// </summary>
|
|
/// <param name="data">Session info.</param>
|
|
public SessionsMessage(IReadOnlyList<SessionInfo> data)
|
|
: base(data)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
[DefaultValue(SessionMessageType.Sessions)]
|
|
public override SessionMessageType MessageType => SessionMessageType.Sessions;
|
|
}
|