Merge pull request #1067 from MediaBrowser/master

add bulk sync remove
This commit is contained in:
Luke
2015-04-03 21:30:23 -04:00
9 changed files with 123 additions and 140 deletions

View File

@@ -21,7 +21,7 @@ namespace MediaBrowser.Controller.Sync
/// <param name="serverId">The server identifier.</param>
/// <returns>Task&lt;List&lt;System.String&gt;&gt;.</returns>
Task<List<string>> GetSyncJobItemIds(SyncTarget target, string serverId);
/// <summary>
/// Adds the or update.
/// </summary>
@@ -53,7 +53,7 @@ namespace MediaBrowser.Controller.Sync
/// <param name="serverId">The server identifier.</param>
/// <param name="itemId">The item identifier.</param>
/// <returns>Task&lt;LocalItem&gt;.</returns>
Task<List<LocalItem>> GetCachedItems(SyncTarget target, string serverId, string itemId);
Task<List<LocalItem>> GetItems(SyncTarget target, string serverId, string itemId);
/// <summary>
/// Gets the cached items by synchronize job item identifier.
/// </summary>
@@ -61,6 +61,6 @@ namespace MediaBrowser.Controller.Sync
/// <param name="serverId">The server identifier.</param>
/// <param name="syncJobItemId">The synchronize job item identifier.</param>
/// <returns>Task&lt;List&lt;LocalItem&gt;&gt;.</returns>
Task<List<LocalItem>> GetCachedItemsBySyncJobItemId(SyncTarget target, string serverId, string syncJobItemId);
Task<List<LocalItem>> GetItemsBySyncJobItemId(SyncTarget target, string serverId, string syncJobItemId);
}
}

View File

@@ -73,6 +73,14 @@ namespace MediaBrowser.Controller.Sync
/// <returns>Task.</returns>
Task CancelJob(string id);
/// <summary>
/// Cancels the items.
/// </summary>
/// <param name="targetId">The target identifier.</param>
/// <param name="itemIds">The item ids.</param>
/// <returns>Task.</returns>
Task CancelItems(string targetId, IEnumerable<string> itemIds);
/// <summary>
/// Adds the parts.
/// </summary>