SessionsStopMessage.cs 734 B

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