SessionsMessage.cs 756 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using System.ComponentModel;
  3. using MediaBrowser.Controller.Session;
  4. using MediaBrowser.Model.Session;
  5. namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;
  6. /// <summary>
  7. /// Sessions message.
  8. /// </summary>
  9. public class SessionsMessage : OutboundWebSocketMessage<IReadOnlyList<SessionInfo>>
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="SessionsMessage"/> class.
  13. /// </summary>
  14. /// <param name="data">Session info.</param>
  15. public SessionsMessage(IReadOnlyList<SessionInfo> data)
  16. : base(data)
  17. {
  18. }
  19. /// <inheritdoc />
  20. [DefaultValue(SessionMessageType.Sessions)]
  21. public override SessionMessageType MessageType => SessionMessageType.Sessions;
  22. }