mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-04 01:11:55 +01:00
update sync objects
This commit is contained in:
@@ -14,6 +14,7 @@ using MediaBrowser.Model.Querying;
|
||||
using MediaBrowser.Model.Search;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
using MediaBrowser.Model.Session;
|
||||
using MediaBrowser.Model.Sync;
|
||||
using MediaBrowser.Model.System;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using MediaBrowser.Model.Users;
|
||||
@@ -1371,6 +1372,20 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <returns>Task<DevicesOptions>.</returns>
|
||||
Task<DevicesOptions> GetDevicesOptions();
|
||||
|
||||
/// <summary>
|
||||
/// Updates the item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task UpdateItem(BaseItemDto item);
|
||||
|
||||
/// <summary>
|
||||
/// Requests the synchronize.
|
||||
/// </summary>
|
||||
/// <param name="request">The request.</param>
|
||||
/// <returns>Task<SyncJob>.</returns>
|
||||
Task<SyncJob> RequestSync(SyncJobRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Opens the web socket.
|
||||
/// </summary>
|
||||
|
||||
@@ -368,7 +368,6 @@
|
||||
<Compile Include="Sync\SyncJobQuery.cs" />
|
||||
<Compile Include="Sync\SyncJobRequest.cs" />
|
||||
<Compile Include="Sync\SyncJobStatus.cs" />
|
||||
<Compile Include="Sync\SyncLimitType.cs" />
|
||||
<Compile Include="Sync\SyncQuality.cs" />
|
||||
<Compile Include="Sync\SyncTarget.cs" />
|
||||
<Compile Include="System\LogFile.cs" />
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace MediaBrowser.Model.Querying
|
||||
/// The series studio
|
||||
/// </summary>
|
||||
SeriesStudio,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The soundtrack ids
|
||||
/// </summary>
|
||||
|
||||
@@ -13,11 +13,13 @@ namespace MediaBrowser.Model.Session
|
||||
public string MessageCallbackUrl { get; set; }
|
||||
|
||||
public bool SupportsContentUploading { get; set; }
|
||||
public bool SupportsDeviceId { get; set; }
|
||||
|
||||
public ClientCapabilities()
|
||||
{
|
||||
PlayableMediaTypes = new List<string>();
|
||||
SupportedCommands = new List<string>();
|
||||
SupportsDeviceId = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,26 +46,26 @@ namespace MediaBrowser.Model.Sync
|
||||
/// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
|
||||
public bool UnwatchedOnly { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the limit.
|
||||
/// Gets or sets a value indicating whether [remove when watched].
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public long? Limit { get; set; }
|
||||
/// <value><c>true</c> if [remove when watched]; otherwise, <c>false</c>.</value>
|
||||
public bool RemoveWhenWatched { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the limit.
|
||||
/// Gets or sets a value indicating whether [synchronize new content].
|
||||
/// </summary>
|
||||
/// <value>The type of the limit.</value>
|
||||
public SyncLimitType? LimitType { get; set; }
|
||||
/// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
|
||||
public bool SyncNewContent { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the item limit.
|
||||
/// </summary>
|
||||
/// <value>The item limit.</value>
|
||||
public int? ItemLimit { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the requested item ids.
|
||||
/// </summary>
|
||||
/// <value>The requested item ids.</value>
|
||||
public List<string> RequestedItemIds { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is dynamic.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is dynamic; otherwise, <c>false</c>.</value>
|
||||
public bool IsDynamic { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the date created.
|
||||
/// </summary>
|
||||
/// <value>The date created.</value>
|
||||
|
||||
@@ -35,19 +35,25 @@ namespace MediaBrowser.Model.Sync
|
||||
/// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
|
||||
public bool UnwatchedOnly { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [remove when watched].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [remove when watched]; otherwise, <c>false</c>.</value>
|
||||
public bool RemoveWhenWatched { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [synchronize new content].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
|
||||
public bool SyncNewContent { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the limit.
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public long? Limit { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the limit.
|
||||
/// </summary>
|
||||
/// <value>The type of the limit.</value>
|
||||
public SyncLimitType? LimitType { get; set; }
|
||||
public int? ItemLimit { get; set; }
|
||||
|
||||
public SyncJobRequest()
|
||||
{
|
||||
ItemIds = new List<string>();
|
||||
SyncNewContent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,10 +4,9 @@ namespace MediaBrowser.Model.Sync
|
||||
public enum SyncJobStatus
|
||||
{
|
||||
Queued = 0,
|
||||
Transcoding = 1,
|
||||
TranscodingFailed = 2,
|
||||
Transferring = 3,
|
||||
Completed = 4,
|
||||
Cancelled = 5
|
||||
Converting = 1,
|
||||
Transferring = 2,
|
||||
Completed = 3,
|
||||
Cancelled = 4
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public enum SyncLimitType
|
||||
{
|
||||
ItemCount = 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user