ActivityLogEntryStartMessage.cs 910 B

12345678910111213141516171819202122232425
  1. using System.ComponentModel;
  2. using MediaBrowser.Model.Session;
  3. namespace MediaBrowser.Controller.Net.WebSocketMessages.Inbound;
  4. /// <summary>
  5. /// Activity log entry start message.
  6. /// Data is the timing data encoded as "$initialDelay,$interval" in ms.
  7. /// </summary>
  8. public class ActivityLogEntryStartMessage : InboundWebSocketMessage<string>
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="ActivityLogEntryStartMessage"/> class.
  12. /// Data is the timing data encoded as "$initialDelay,$interval" in ms.
  13. /// </summary>
  14. /// <param name="data">The timing data encoded as "$initialDelay,$interval".</param>
  15. public ActivityLogEntryStartMessage(string data)
  16. : base(data)
  17. {
  18. }
  19. /// <inheritdoc />
  20. [DefaultValue(SessionMessageType.ActivityLogEntryStart)]
  21. public override SessionMessageType MessageType => SessionMessageType.ActivityLogEntryStart;
  22. }