2014-12-12 20:56:30 -07:00
|
|
|
|
using System;
|
2015-01-16 21:29:53 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
2014-12-12 20:56:30 -07:00
|
|
|
|
|
2014-07-26 10:30:15 -07:00
|
|
|
|
namespace MediaBrowser.Model.Sync
|
|
|
|
|
{
|
|
|
|
|
public class SyncJobItem
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The identifier.</value>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the job identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The job identifier.</value>
|
|
|
|
|
public string JobId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The item identifier.</value>
|
|
|
|
|
public string ItemId { get; set; }
|
|
|
|
|
|
2014-12-30 23:24:49 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the item.</value>
|
|
|
|
|
public string ItemName { get; set; }
|
2015-01-16 21:29:53 -07:00
|
|
|
|
|
2014-12-26 10:45:06 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the media source identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The media source identifier.</value>
|
|
|
|
|
public string MediaSourceId { get; set; }
|
2015-01-16 21:29:53 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the media source.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The media source.</value>
|
|
|
|
|
public MediaSourceInfo MediaSource { get; set; }
|
2014-12-26 10:45:06 -07:00
|
|
|
|
|
2014-07-26 10:30:15 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the target identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The target identifier.</value>
|
|
|
|
|
public string TargetId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the output path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The output path.</value>
|
|
|
|
|
public string OutputPath { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status.</value>
|
2014-12-12 20:56:30 -07:00
|
|
|
|
public SyncJobItemStatus Status { get; set; }
|
2014-07-26 10:30:15 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the current progress.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The current progress.</value>
|
2014-12-12 20:56:30 -07:00
|
|
|
|
public double? Progress { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the date created.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The date created.</value>
|
|
|
|
|
public DateTime DateCreated { get; set; }
|
2014-12-30 23:24:49 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the primary image item identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The primary image item identifier.</value>
|
|
|
|
|
public string PrimaryImageItemId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the primary image tag.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The primary image tag.</value>
|
|
|
|
|
public string PrimaryImageTag { get; set; }
|
2015-01-05 20:25:23 -07:00
|
|
|
|
/// <summary>
|
2015-01-16 21:29:53 -07:00
|
|
|
|
/// Gets or sets the temporary path.
|
2015-01-05 20:25:23 -07:00
|
|
|
|
/// </summary>
|
2015-01-16 21:29:53 -07:00
|
|
|
|
/// <value>The temporary path.</value>
|
|
|
|
|
public string TemporaryPath { get; set; }
|
2015-01-20 21:56:00 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the additional files.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The additional files.</value>
|
2017-08-19 12:43:35 -07:00
|
|
|
|
public ItemFileInfo[] AdditionalFiles { get; set; }
|
2015-01-20 21:56:00 -07:00
|
|
|
|
/// <summary>
|
2015-01-22 23:15:15 -07:00
|
|
|
|
/// Gets or sets the index of the job item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The index of the job item.</value>
|
|
|
|
|
public int JobItemIndex { get; set; }
|
2015-01-20 20:54:45 -07:00
|
|
|
|
|
2016-04-27 13:24:53 -07:00
|
|
|
|
public long ItemDateModifiedTicks { get; set; }
|
|
|
|
|
|
2015-01-16 21:29:53 -07:00
|
|
|
|
public SyncJobItem()
|
|
|
|
|
{
|
2017-08-19 12:43:35 -07:00
|
|
|
|
AdditionalFiles = new ItemFileInfo[] { };
|
2015-01-16 21:29:53 -07:00
|
|
|
|
}
|
2014-07-26 10:30:15 -07:00
|
|
|
|
}
|
|
|
|
|
}
|