jellyfin/MediaBrowser.Model/Sync/SyncJob.cs

105 lines
3.6 KiB
C#
Raw Normal View History

2014-07-26 17:30:15 +00:00
using System;
using System.Collections.Generic;
2014-07-15 04:12:26 +00:00
namespace MediaBrowser.Model.Sync
{
public class SyncJob
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
2014-07-22 01:29:06 +00:00
public string TargetId { get; set; }
2014-07-15 04:12:26 +00:00
/// <summary>
2015-02-04 20:16:23 +00:00
/// Gets or sets the name of the target.
/// </summary>
/// <value>The name of the target.</value>
public string TargetName { get; set; }
/// <summary>
2014-07-15 04:12:26 +00:00
/// Gets or sets the quality.
/// </summary>
/// <value>The quality.</value>
public SyncQuality Quality { get; set; }
/// <summary>
2014-12-16 05:01:57 +00:00
/// Gets or sets the category.
/// </summary>
/// <value>The category.</value>
public SyncCategory? Category { get; set; }
/// <summary>
/// Gets or sets the parent identifier.
/// </summary>
/// <value>The parent identifier.</value>
public string ParentId { get; set; }
/// <summary>
2014-07-26 17:30:15 +00:00
/// Gets or sets the current progress.
/// </summary>
/// <value>The current progress.</value>
public double? Progress { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
2014-07-15 04:12:26 +00:00
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
2014-07-26 17:30:15 +00:00
public SyncJobStatus Status { get; set; }
2014-07-15 04:12:26 +00:00
/// <summary>
2014-07-26 17:30:15 +00:00
/// Gets or sets the user identifier.
2014-07-15 04:12:26 +00:00
/// </summary>
2014-07-26 17:30:15 +00:00
/// <value>The user identifier.</value>
public string UserId { get; set; }
2014-07-15 04:12:26 +00:00
/// <summary>
2014-07-26 17:30:15 +00:00
/// Gets or sets a value indicating whether [unwatched only].
2014-07-15 04:12:26 +00:00
/// </summary>
2014-07-26 17:30:15 +00:00
/// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
public bool UnwatchedOnly { get; set; }
2014-07-15 04:12:26 +00:00
/// <summary>
2014-12-11 06:20:28 +00:00
/// Gets or sets a value indicating whether [synchronize new content].
2014-07-22 16:36:34 +00:00
/// </summary>
2014-12-11 06:20:28 +00:00
/// <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; }
2014-07-26 17:30:15 +00:00
/// <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 the date created.
/// </summary>
/// <value>The date created.</value>
public DateTime DateCreated { get; set; }
/// <summary>
/// Gets or sets the date last modified.
/// </summary>
/// <value>The date last modified.</value>
public DateTime DateLastModified { get; set; }
/// <summary>
/// Gets or sets the item count.
/// </summary>
/// <value>The item count.</value>
public int ItemCount { get; set; }
public string ParentName { get; set; }
public string PrimaryImageItemId { get; set; }
public string PrimaryImageTag { get; set; }
public SyncJob()
{
RequestedItemIds = new List<string>();
2015-02-03 19:37:50 +00:00
Quality = SyncQuality.High;
2014-07-26 17:30:15 +00:00
}
2014-07-15 04:12:26 +00:00
}
}