From ea9e8b957cdf5bb335967eeb1a018c4fc2a1db53 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 11 Dec 2014 01:20:28 -0500 Subject: update sync objects --- MediaBrowser.Model/Sync/SyncJob.cs | 22 +++++++++++----------- MediaBrowser.Model/Sync/SyncJobRequest.cs | 18 ++++++++++++------ MediaBrowser.Model/Sync/SyncJobStatus.cs | 9 ++++----- MediaBrowser.Model/Sync/SyncLimitType.cs | 7 ------- 4 files changed, 27 insertions(+), 29 deletions(-) delete mode 100644 MediaBrowser.Model/Sync/SyncLimitType.cs (limited to 'MediaBrowser.Model/Sync') 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 /// true if [unwatched only]; otherwise, false. public bool UnwatchedOnly { get; set; } /// - /// Gets or sets the limit. + /// Gets or sets a value indicating whether [remove when watched]. /// - /// The limit. - public long? Limit { get; set; } + /// true if [remove when watched]; otherwise, false. + public bool RemoveWhenWatched { get; set; } /// - /// Gets or sets the type of the limit. + /// Gets or sets a value indicating whether [synchronize new content]. /// - /// The type of the limit. - public SyncLimitType? LimitType { get; set; } + /// true if [synchronize new content]; otherwise, false. + public bool SyncNewContent { get; set; } + /// + /// Gets or sets the item limit. + /// + /// The item limit. + public int? ItemLimit { get; set; } /// /// Gets or sets the requested item ids. /// /// The requested item ids. public List RequestedItemIds { get; set; } /// - /// Gets or sets a value indicating whether this instance is dynamic. - /// - /// true if this instance is dynamic; otherwise, false. - public bool IsDynamic { get; set; } - /// /// Gets or sets the date created. /// /// The date created. 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 /// true if [unwatched only]; otherwise, false. public bool UnwatchedOnly { get; set; } /// - /// Gets or sets the limit. + /// Gets or sets a value indicating whether [remove when watched]. /// - /// The limit. - public long? Limit { get; set; } + /// true if [remove when watched]; otherwise, false. + public bool RemoveWhenWatched { get; set; } + /// + /// Gets or sets a value indicating whether [synchronize new content]. + /// + /// true if [synchronize new content]; otherwise, false. + public bool SyncNewContent { get; set; } /// - /// Gets or sets the type of the limit. + /// Gets or sets the limit. /// - /// The type of the limit. - public SyncLimitType? LimitType { get; set; } + /// The limit. + public int? ItemLimit { get; set; } public SyncJobRequest() { ItemIds = new List(); + 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 -- cgit v1.2.3