jellyfin/MediaBrowser.Model/Sync/SyncJob.cs

136 lines
3.9 KiB
C#
Raw Normal View History

#nullable disable
2020-02-03 17:49:27 -07:00
#pragma warning disable CS1591
using System;
2018-12-27 16:27:57 -07:00
namespace MediaBrowser.Model.Sync
{
public class SyncJob
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
public string TargetId { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the name of the target.
/// </summary>
/// <value>The name of the target.</value>
public string TargetName { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the quality.
/// </summary>
/// <value>The quality.</value>
public string Quality { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the bitrate.
/// </summary>
/// <value>The bitrate.</value>
public int? Bitrate { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the profile.
/// </summary>
/// <value>The profile.</value>
public string Profile { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the category.
/// </summary>
/// <value>The category.</value>
public SyncCategory? Category { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the parent identifier.
/// </summary>
/// <value>The parent identifier.</value>
public string ParentId { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the current progress.
/// </summary>
/// <value>The current progress.</value>
public double? Progress { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public SyncJobStatus Status { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the user identifier.
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets a value indicating whether [unwatched only].
/// </summary>
/// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
public bool UnwatchedOnly { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <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; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the item limit.
/// </summary>
/// <value>The item limit.</value>
public int? ItemLimit { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the requested item ids.
/// </summary>
/// <value>The requested item ids.</value>
public Guid[] RequestedItemIds { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the date created.
/// </summary>
/// <value>The date created.</value>
public DateTime DateCreated { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the date last modified.
/// </summary>
/// <value>The date last modified.</value>
public DateTime DateLastModified { get; set; }
2020-02-03 17:49:27 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets or sets the item count.
/// </summary>
/// <value>The item count.</value>
public int ItemCount { get; set; }
public string ParentName { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public string PrimaryImageItemId { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public string PrimaryImageTag { get; set; }
public SyncJob()
{
2018-12-27 14:43:48 -07:00
RequestedItemIds = Array.Empty<Guid>();
2018-12-27 16:27:57 -07:00
}
}
}