mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 07:16:31 +01:00
more sync movement
This commit is contained in:
17
MediaBrowser.Model/Devices/DeviceQuery.cs
Normal file
17
MediaBrowser.Model/Devices/DeviceQuery.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
namespace MediaBrowser.Model.Devices
|
||||
{
|
||||
public class DeviceQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports content uploading].
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [supports content uploading] contains no value, <c>true</c> if [supports content uploading]; otherwise, <c>false</c>.</value>
|
||||
public bool? SupportsContentUploading { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports unique identifier].
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [supports unique identifier] contains no value, <c>true</c> if [supports unique identifier]; otherwise, <c>false</c>.</value>
|
||||
public bool? SupportsUniqueIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -186,6 +186,12 @@ namespace MediaBrowser.Model.Dto
|
||||
/// </summary>
|
||||
/// <value>The genres.</value>
|
||||
public List<string> Genres { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the series genres.
|
||||
/// </summary>
|
||||
/// <value>The series genres.</value>
|
||||
public List<string> SeriesGenres { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the community rating.
|
||||
|
||||
@@ -113,6 +113,7 @@
|
||||
<Compile Include="Connect\PinStatusResult.cs" />
|
||||
<Compile Include="Connect\UserLinkType.cs" />
|
||||
<Compile Include="Devices\DeviceOptions.cs" />
|
||||
<Compile Include="Devices\DeviceQuery.cs" />
|
||||
<Compile Include="Devices\LocalFileInfo.cs" />
|
||||
<Compile Include="Devices\DeviceInfo.cs" />
|
||||
<Compile Include="Devices\DevicesOptions.cs" />
|
||||
@@ -365,6 +366,8 @@
|
||||
<Compile Include="Sync\SyncJob.cs" />
|
||||
<Compile Include="Sync\SyncJobCreationResult.cs" />
|
||||
<Compile Include="Sync\SyncJobItem.cs" />
|
||||
<Compile Include="Sync\SyncJobItemQuery.cs" />
|
||||
<Compile Include="Sync\SyncJobItemStatus.cs" />
|
||||
<Compile Include="Sync\SyncJobQuery.cs" />
|
||||
<Compile Include="Sync\SyncJobRequest.cs" />
|
||||
<Compile Include="Sync\SyncJobStatus.cs" />
|
||||
|
||||
@@ -161,6 +161,11 @@ namespace MediaBrowser.Model.Querying
|
||||
/// </summary>
|
||||
ScreenshotImageTags,
|
||||
|
||||
/// <summary>
|
||||
/// The series genres
|
||||
/// </summary>
|
||||
SeriesGenres,
|
||||
|
||||
/// <summary>
|
||||
/// The series studio
|
||||
/// </summary>
|
||||
|
||||
@@ -13,13 +13,14 @@ namespace MediaBrowser.Model.Session
|
||||
public string MessageCallbackUrl { get; set; }
|
||||
|
||||
public bool SupportsContentUploading { get; set; }
|
||||
public bool SupportsDeviceId { get; set; }
|
||||
public bool SupportsUniqueIdentifier { get; set; }
|
||||
public bool SupportsSync { get; set; }
|
||||
|
||||
public ClientCapabilities()
|
||||
{
|
||||
PlayableMediaTypes = new List<string>();
|
||||
SupportedCommands = new List<string>();
|
||||
SupportsDeviceId = true;
|
||||
SupportsUniqueIdentifier = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncJobItem
|
||||
@@ -37,12 +38,18 @@ namespace MediaBrowser.Model.Sync
|
||||
/// Gets or sets the status.
|
||||
/// </summary>
|
||||
/// <value>The status.</value>
|
||||
public SyncJobStatus Status { get; set; }
|
||||
public SyncJobItemStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current progress.
|
||||
/// </summary>
|
||||
/// <value>The current progress.</value>
|
||||
public double? CurrentProgress { get; set; }
|
||||
public double? Progress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date created.
|
||||
/// </summary>
|
||||
/// <value>The date created.</value>
|
||||
public DateTime DateCreated { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
27
MediaBrowser.Model/Sync/SyncJobItemQuery.cs
Normal file
27
MediaBrowser.Model/Sync/SyncJobItemQuery.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncJobItemQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the start index.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the limit.
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the job identifier.
|
||||
/// </summary>
|
||||
/// <value>The job identifier.</value>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is completed.
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [is completed] contains no value, <c>true</c> if [is completed]; otherwise, <c>false</c>.</value>
|
||||
public bool? IsCompleted { get; set; }
|
||||
}
|
||||
}
|
||||
12
MediaBrowser.Model/Sync/SyncJobItemStatus.cs
Normal file
12
MediaBrowser.Model/Sync/SyncJobItemStatus.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public enum SyncJobItemStatus
|
||||
{
|
||||
Queued = 0,
|
||||
Converting = 1,
|
||||
Transferring = 2,
|
||||
Completed = 3,
|
||||
Failed = 4
|
||||
}
|
||||
}
|
||||
@@ -13,5 +13,10 @@ namespace MediaBrowser.Model.Sync
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is completed.
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [is completed] contains no value, <c>true</c> if [is completed]; otherwise, <c>false</c>.</value>
|
||||
public bool? IsCompleted { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,8 @@ namespace MediaBrowser.Model.Sync
|
||||
public enum SyncJobStatus
|
||||
{
|
||||
Queued = 0,
|
||||
Converting = 1,
|
||||
Transferring = 2,
|
||||
Completed = 3,
|
||||
Cancelled = 4
|
||||
InProgress = 1,
|
||||
Completed = 2,
|
||||
CompletedWithError = 3
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user