2014-01-19 18:08:17 +00:00
|
|
|
|
using System;
|
2014-01-23 21:09:00 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-01-19 18:08:17 +00:00
|
|
|
|
|
2014-01-20 16:09:53 +00:00
|
|
|
|
namespace MediaBrowser.Model.FileOrganization
|
2014-01-19 18:08:17 +00:00
|
|
|
|
{
|
2014-01-20 16:09:53 +00:00
|
|
|
|
public class FileOrganizationResult
|
2014-01-19 18:08:17 +00:00
|
|
|
|
{
|
2014-01-21 06:10:58 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the result identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The result identifier.</value>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
2014-01-19 18:08:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the original path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The original path.</value>
|
|
|
|
|
public string OriginalPath { get; set; }
|
|
|
|
|
|
2014-01-21 06:10:58 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the original file.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the original file.</value>
|
|
|
|
|
public string OriginalFileName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the extracted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the extracted.</value>
|
|
|
|
|
public string ExtractedName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the extracted year.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The extracted year.</value>
|
|
|
|
|
public int? ExtractedYear { get; set; }
|
2014-01-21 16:24:12 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the extracted season number.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The extracted season number.</value>
|
|
|
|
|
public int? ExtractedSeasonNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the extracted episode number.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The extracted episode number.</value>
|
|
|
|
|
public int? ExtractedEpisodeNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the extracted ending episode number.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The extracted ending episode number.</value>
|
|
|
|
|
public int? ExtractedEndingEpisodeNumber { get; set; }
|
2014-01-21 06:10:58 +00:00
|
|
|
|
|
2014-01-19 18:08:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the target path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The target path.</value>
|
|
|
|
|
public string TargetPath { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the date.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The date.</value>
|
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the error message.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The error message.</value>
|
2014-01-21 06:10:58 +00:00
|
|
|
|
public string StatusMessage { get; set; }
|
2014-01-19 18:08:17 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status.</value>
|
|
|
|
|
public FileSortingStatus Status { get; set; }
|
2014-01-21 06:10:58 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type.</value>
|
|
|
|
|
public FileOrganizerType Type { get; set; }
|
2014-01-23 21:09:00 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the duplicate paths.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The duplicate paths.</value>
|
|
|
|
|
public List<string> DuplicatePaths { get; set; }
|
|
|
|
|
|
|
|
|
|
public FileOrganizationResult()
|
|
|
|
|
{
|
|
|
|
|
DuplicatePaths = new List<string>();
|
|
|
|
|
}
|
2014-01-19 18:08:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FileSortingStatus
|
|
|
|
|
{
|
|
|
|
|
Success,
|
|
|
|
|
Failure,
|
2014-01-21 16:24:12 +00:00
|
|
|
|
SkippedExisting
|
2014-01-19 18:08:17 +00:00
|
|
|
|
}
|
2014-01-21 06:10:58 +00:00
|
|
|
|
|
|
|
|
|
public enum FileOrganizerType
|
|
|
|
|
{
|
|
|
|
|
Movie,
|
|
|
|
|
Episode,
|
|
|
|
|
Song
|
|
|
|
|
}
|
2014-01-19 18:08:17 +00:00
|
|
|
|
}
|