2023-06-29 11:44:36 +00:00
|
|
|
using System.Collections.Generic;
|
2023-06-10 13:28:21 +00:00
|
|
|
using System.ComponentModel;
|
|
|
|
using MediaBrowser.Controller.Session;
|
|
|
|
using MediaBrowser.Model.Session;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sessions message.
|
|
|
|
/// </summary>
|
2023-06-29 11:44:36 +00:00
|
|
|
public class SessionsMessage : OutboundWebSocketMessage<IReadOnlyList<SessionInfo>>
|
2023-06-10 13:28:21 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="SessionsMessage"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="data">Session info.</param>
|
2023-06-29 11:44:36 +00:00
|
|
|
public SessionsMessage(IReadOnlyList<SessionInfo> data)
|
2023-06-10 13:28:21 +00:00
|
|
|
: base(data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
[DefaultValue(SessionMessageType.Sessions)]
|
|
|
|
public override SessionMessageType MessageType => SessionMessageType.Sessions;
|
|
|
|
}
|