mirror of https://github.com/jellyfin/jellyfin.git
27 lines
792 B
C#
27 lines
792 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using MediaBrowser.Controller.Session;
|
|
using MediaBrowser.Model.Dto;
|
|
using MediaBrowser.Model.Session;
|
|
|
|
namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;
|
|
|
|
/// <summary>
|
|
/// Sessions message.
|
|
/// </summary>
|
|
public class SessionsMessage : OutboundWebSocketMessage<IReadOnlyList<SessionInfoDto>>
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SessionsMessage"/> class.
|
|
/// </summary>
|
|
/// <param name="data">Session info.</param>
|
|
public SessionsMessage(IReadOnlyList<SessionInfoDto> data)
|
|
: base(data)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
[DefaultValue(SessionMessageType.Sessions)]
|
|
public override SessionMessageType MessageType => SessionMessageType.Sessions;
|
|
}
|