mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
added sync model objects
This commit is contained in:
47
MediaBrowser.Model/Sync/SyncJob.cs
Normal file
47
MediaBrowser.Model/Sync/SyncJob.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncJob
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>The device identifier.</value>
|
||||
public string DeviceId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the item identifier.
|
||||
/// </summary>
|
||||
/// <value>The item identifier.</value>
|
||||
public string ItemId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the quality.
|
||||
/// </summary>
|
||||
/// <value>The quality.</value>
|
||||
public SyncQuality Quality { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the status.
|
||||
/// </summary>
|
||||
/// <value>The status.</value>
|
||||
public SyncJobStatus Status { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the current progress.
|
||||
/// </summary>
|
||||
/// <value>The current progress.</value>
|
||||
public double? CurrentProgress { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the synchronize rule identifier.
|
||||
/// </summary>
|
||||
/// <value>The synchronize rule identifier.</value>
|
||||
public string SyncScheduleId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the transcoded path.
|
||||
/// </summary>
|
||||
/// <value>The transcoded path.</value>
|
||||
public string TranscodedPath { get; set; }
|
||||
}
|
||||
}
|
||||
7
MediaBrowser.Model/Sync/SyncJobQuery.cs
Normal file
7
MediaBrowser.Model/Sync/SyncJobQuery.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncJobQuery
|
||||
{
|
||||
}
|
||||
}
|
||||
28
MediaBrowser.Model/Sync/SyncJobRequest.cs
Normal file
28
MediaBrowser.Model/Sync/SyncJobRequest.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncJobRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>The device identifier.</value>
|
||||
public List<string> DeviceIds { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the item identifier.
|
||||
/// </summary>
|
||||
/// <value>The item identifier.</value>
|
||||
public string ItemId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the quality.
|
||||
/// </summary>
|
||||
/// <value>The quality.</value>
|
||||
public SyncQuality Quality { get; set; }
|
||||
|
||||
public SyncJobRequest()
|
||||
{
|
||||
DeviceIds = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
35
MediaBrowser.Model/Sync/SyncJobStatus.cs
Normal file
35
MediaBrowser.Model/Sync/SyncJobStatus.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public enum SyncJobStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// The queued
|
||||
/// </summary>
|
||||
Queued = 0,
|
||||
/// <summary>
|
||||
/// The transcoding
|
||||
/// </summary>
|
||||
Transcoding = 1,
|
||||
/// <summary>
|
||||
/// The transcoding failed
|
||||
/// </summary>
|
||||
TranscodingFailed = 2,
|
||||
/// <summary>
|
||||
/// The transcoding completed
|
||||
/// </summary>
|
||||
TranscodingCompleted = 3,
|
||||
/// <summary>
|
||||
/// The transfering
|
||||
/// </summary>
|
||||
Transfering = 4,
|
||||
/// <summary>
|
||||
/// The transfer failed
|
||||
/// </summary>
|
||||
TransferFailed = 4,
|
||||
/// <summary>
|
||||
/// The completed
|
||||
/// </summary>
|
||||
Completed = 6
|
||||
}
|
||||
}
|
||||
21
MediaBrowser.Model/Sync/SyncQuality.cs
Normal file
21
MediaBrowser.Model/Sync/SyncQuality.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public enum SyncQuality
|
||||
{
|
||||
/// <summary>
|
||||
/// The good
|
||||
/// </summary>
|
||||
Good = 0,
|
||||
|
||||
/// <summary>
|
||||
/// The better
|
||||
/// </summary>
|
||||
Better = 1,
|
||||
|
||||
/// <summary>
|
||||
/// The best
|
||||
/// </summary>
|
||||
Best = 2
|
||||
}
|
||||
}
|
||||
12
MediaBrowser.Model/Sync/SyncSchedule.cs
Normal file
12
MediaBrowser.Model/Sync/SyncSchedule.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncSchedule
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
7
MediaBrowser.Model/Sync/SyncScheduleQuery.cs
Normal file
7
MediaBrowser.Model/Sync/SyncScheduleQuery.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncScheduleQuery
|
||||
{
|
||||
}
|
||||
}
|
||||
23
MediaBrowser.Model/Sync/SyncScheduleRequest.cs
Normal file
23
MediaBrowser.Model/Sync/SyncScheduleRequest.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncScheduleRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>The device identifier.</value>
|
||||
public List<string> DeviceIds { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the quality.
|
||||
/// </summary>
|
||||
/// <value>The quality.</value>
|
||||
public SyncQuality Quality { get; set; }
|
||||
|
||||
public SyncScheduleRequest()
|
||||
{
|
||||
DeviceIds = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user