sync updates

This commit is contained in:
Luke Pulverenti
2014-12-17 00:30:31 -05:00
parent febaab13bf
commit 13274348e9
62 changed files with 456 additions and 224 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class SyncDialogOptions
{
/// <summary>
/// Gets or sets the targets.
/// </summary>
/// <value>The targets.</value>
public List<SyncTarget> Targets { get; set; }
/// <summary>
/// Gets or sets the options.
/// </summary>
/// <value>The options.</value>
public List<SyncOptions> Options { get; set; }
public SyncDialogOptions()
{
Targets = new List<SyncTarget>();
Options = new List<SyncOptions>();
}
}
}

View File

@@ -21,7 +21,10 @@ namespace MediaBrowser.Model.Sync
if (item.IsVideo)
{
options.Add(SyncOptions.Quality);
options.Add(SyncOptions.UnwatchedOnly);
if (items.Count > 1)
{
options.Add(SyncOptions.UnwatchedOnly);
}
break;
}
if (item.IsFolder && !item.IsMusicGenre && !item.IsArtist && !item.IsType("musicalbum") && !item.IsGameGenre)
@@ -30,6 +33,12 @@ namespace MediaBrowser.Model.Sync
options.Add(SyncOptions.UnwatchedOnly);
break;
}
if (item.IsGenre)
{
options.Add(SyncOptions.SyncNewContent);
options.Add(SyncOptions.ItemLimit);
break;
}
}
}

View File

@@ -19,6 +19,16 @@ namespace MediaBrowser.Model.Sync
/// <value>The job identifier.</value>
public string JobId { get; set; }
/// <summary>
/// Gets or sets the target identifier.
/// </summary>
/// <value>The target identifier.</value>
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public SyncJobItemStatus? Status { 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>

View File

@@ -18,5 +18,10 @@ namespace MediaBrowser.Model.Sync
/// </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; }
/// <summary>
/// Gets or sets the target identifier.
/// </summary>
/// <value>The target identifier.</value>
public string TargetId { get; set; }
}
}