aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/ApiClient/IApiClient.cs15
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj1
-rw-r--r--MediaBrowser.Model/Querying/ItemFields.cs2
-rw-r--r--MediaBrowser.Model/Session/ClientCapabilities.cs2
-rw-r--r--MediaBrowser.Model/Sync/SyncJob.cs22
-rw-r--r--MediaBrowser.Model/Sync/SyncJobRequest.cs18
-rw-r--r--MediaBrowser.Model/Sync/SyncJobStatus.cs9
-rw-r--r--MediaBrowser.Model/Sync/SyncLimitType.cs7
8 files changed, 45 insertions, 31 deletions
diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs
index b5b0b641a..13907e5c6 100644
--- a/MediaBrowser.Model/ApiClient/IApiClient.cs
+++ b/MediaBrowser.Model/ApiClient/IApiClient.cs
@@ -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;
@@ -1372,6 +1373,20 @@ namespace MediaBrowser.Model.ApiClient
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&lt;SyncJob&gt;.</returns>
+ Task<SyncJob> RequestSync(SyncJobRequest request);
+
+ /// <summary>
/// Opens the web socket.
/// </summary>
/// <param name="webSocketFactory">The web socket factory.</param>
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index f7eb54292..4825cb4cc 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -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" />
diff --git a/MediaBrowser.Model/Querying/ItemFields.cs b/MediaBrowser.Model/Querying/ItemFields.cs
index d0e2c9511..a5a906f95 100644
--- a/MediaBrowser.Model/Querying/ItemFields.cs
+++ b/MediaBrowser.Model/Querying/ItemFields.cs
@@ -165,7 +165,7 @@ namespace MediaBrowser.Model.Querying
/// The series studio
/// </summary>
SeriesStudio,
-
+
/// <summary>
/// The soundtrack ids
/// </summary>
diff --git a/MediaBrowser.Model/Session/ClientCapabilities.cs b/MediaBrowser.Model/Session/ClientCapabilities.cs
index cbc1501d2..fc0d3a1fb 100644
--- a/MediaBrowser.Model/Session/ClientCapabilities.cs
+++ b/MediaBrowser.Model/Session/ClientCapabilities.cs
@@ -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;
}
}
} \ No newline at end of file
diff --git a/MediaBrowser.Model/Sync/SyncJob.cs b/MediaBrowser.Model/Sync/SyncJob.cs
index f69fccae5..db67f3cbb 100644
--- a/MediaBrowser.Model/Sync/SyncJob.cs
+++ b/MediaBrowser.Model/Sync/SyncJob.cs
@@ -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>
diff --git a/MediaBrowser.Model/Sync/SyncJobRequest.cs b/MediaBrowser.Model/Sync/SyncJobRequest.cs
index 987f396e4..4e044d62a 100644
--- a/MediaBrowser.Model/Sync/SyncJobRequest.cs
+++ b/MediaBrowser.Model/Sync/SyncJobRequest.cs
@@ -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 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 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 type of the limit.
+ /// Gets or sets the limit.
/// </summary>
- /// <value>The type of the limit.</value>
- public SyncLimitType? LimitType { get; set; }
+ /// <value>The limit.</value>
+ public int? ItemLimit { get; set; }
public SyncJobRequest()
{
ItemIds = new List<string>();
+ SyncNewContent = true;
}
}
}
diff --git a/MediaBrowser.Model/Sync/SyncJobStatus.cs b/MediaBrowser.Model/Sync/SyncJobStatus.cs
index ebe375ad8..42af96509 100644
--- a/MediaBrowser.Model/Sync/SyncJobStatus.cs
+++ b/MediaBrowser.Model/Sync/SyncJobStatus.cs
@@ -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
}
}
diff --git a/MediaBrowser.Model/Sync/SyncLimitType.cs b/MediaBrowser.Model/Sync/SyncLimitType.cs
deleted file mode 100644
index d20f9e33d..000000000
--- a/MediaBrowser.Model/Sync/SyncLimitType.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace MediaBrowser.Model.Sync
-{
- public enum SyncLimitType
- {
- ItemCount = 0
- }
-} \ No newline at end of file