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