mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 11:13:32 +01:00
Pushing missing changes
This commit is contained in:
14
MediaBrowser.Model/Tasks/SystemEvent.cs
Normal file
14
MediaBrowser.Model/Tasks/SystemEvent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum SystemEvent
|
||||
/// </summary>
|
||||
public enum SystemEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// The wake from sleep
|
||||
/// </summary>
|
||||
WakeFromSleep
|
||||
}
|
||||
}
|
||||
29
MediaBrowser.Model/Tasks/TaskCompletionStatus.cs
Normal file
29
MediaBrowser.Model/Tasks/TaskCompletionStatus.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum TaskCompletionStatus
|
||||
/// </summary>
|
||||
public enum TaskCompletionStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// The completed
|
||||
/// </summary>
|
||||
Completed,
|
||||
|
||||
/// <summary>
|
||||
/// The failed
|
||||
/// </summary>
|
||||
Failed,
|
||||
|
||||
/// <summary>
|
||||
/// Manually cancelled by the user
|
||||
/// </summary>
|
||||
Cancelled,
|
||||
|
||||
/// <summary>
|
||||
/// Aborted due to a system failure or shutdown
|
||||
/// </summary>
|
||||
Aborted
|
||||
}
|
||||
}
|
||||
68
MediaBrowser.Model/Tasks/TaskInfo.cs
Normal file
68
MediaBrowser.Model/Tasks/TaskInfo.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TaskInfo
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public class TaskInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
[ProtoMember(1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the state of the task.
|
||||
/// </summary>
|
||||
/// <value>The state of the task.</value>
|
||||
[ProtoMember(2)]
|
||||
public TaskState State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the progress.
|
||||
/// </summary>
|
||||
/// <value>The progress.</value>
|
||||
[ProtoMember(3)]
|
||||
public TaskProgress CurrentProgress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id.
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
[ProtoMember(4)]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the last execution result.
|
||||
/// </summary>
|
||||
/// <value>The last execution result.</value>
|
||||
[ProtoMember(5)]
|
||||
public TaskResult LastExecutionResult { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the triggers.
|
||||
/// </summary>
|
||||
/// <value>The triggers.</value>
|
||||
[ProtoMember(6)]
|
||||
public TaskTriggerInfo[] Triggers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the description.
|
||||
/// </summary>
|
||||
/// <value>The description.</value>
|
||||
[ProtoMember(7)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the category.
|
||||
/// </summary>
|
||||
/// <value>The category.</value>
|
||||
[ProtoMember(8)]
|
||||
public string Category { get; set; }
|
||||
}
|
||||
}
|
||||
22
MediaBrowser.Model/Tasks/TaskProgress.cs
Normal file
22
MediaBrowser.Model/Tasks/TaskProgress.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using ProtoBuf;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
[ProtoContract]
|
||||
public class TaskProgress
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the description.
|
||||
/// </summary>
|
||||
/// <value>The description.</value>
|
||||
[ProtoMember(1)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the percent complete.
|
||||
/// </summary>
|
||||
/// <value>The percent complete.</value>
|
||||
[ProtoMember(2)]
|
||||
public double PercentComplete { get; set; }
|
||||
}
|
||||
}
|
||||
47
MediaBrowser.Model/Tasks/TaskResult.cs
Normal file
47
MediaBrowser.Model/Tasks/TaskResult.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TaskExecutionInfo
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public class TaskResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the start time UTC.
|
||||
/// </summary>
|
||||
/// <value>The start time UTC.</value>
|
||||
[ProtoMember(1)]
|
||||
public DateTime StartTimeUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end time UTC.
|
||||
/// </summary>
|
||||
/// <value>The end time UTC.</value>
|
||||
[ProtoMember(2)]
|
||||
public DateTime EndTimeUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the status.
|
||||
/// </summary>
|
||||
/// <value>The status.</value>
|
||||
[ProtoMember(3)]
|
||||
public TaskCompletionStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
[ProtoMember(4)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id.
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
[ProtoMember(5)]
|
||||
public Guid Id { get; set; }
|
||||
}
|
||||
}
|
||||
22
MediaBrowser.Model/Tasks/TaskState.cs
Normal file
22
MediaBrowser.Model/Tasks/TaskState.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum TaskState
|
||||
/// </summary>
|
||||
public enum TaskState
|
||||
{
|
||||
/// <summary>
|
||||
/// The idle
|
||||
/// </summary>
|
||||
Idle,
|
||||
/// <summary>
|
||||
/// The cancelling
|
||||
/// </summary>
|
||||
Cancelling,
|
||||
/// <summary>
|
||||
/// The running
|
||||
/// </summary>
|
||||
Running
|
||||
}
|
||||
}
|
||||
47
MediaBrowser.Model/Tasks/TaskTriggerInfo.cs
Normal file
47
MediaBrowser.Model/Tasks/TaskTriggerInfo.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TaskTriggerInfo
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public class TaskTriggerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the type.
|
||||
/// </summary>
|
||||
/// <value>The type.</value>
|
||||
[ProtoMember(1)]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time of day.
|
||||
/// </summary>
|
||||
/// <value>The time of day.</value>
|
||||
[ProtoMember(2)]
|
||||
public long? TimeOfDayTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the interval.
|
||||
/// </summary>
|
||||
/// <value>The interval.</value>
|
||||
[ProtoMember(3)]
|
||||
public long? IntervalTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the system event.
|
||||
/// </summary>
|
||||
/// <value>The system event.</value>
|
||||
[ProtoMember(4)]
|
||||
public SystemEvent? SystemEvent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the day of week.
|
||||
/// </summary>
|
||||
/// <value>The day of week.</value>
|
||||
[ProtoMember(5)]
|
||||
public DayOfWeek? DayOfWeek { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user