From c798529caca49ef8c323c0e003dd9f4ba0394b5a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 20 Jan 2014 11:09:53 -0500 Subject: #680 - Support new episode file sorting --- .../FileOrganization/FileOrganizationQuery.cs | 18 +++++++++ .../FileOrganization/FileOrganizationResult.cs | 45 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 MediaBrowser.Model/FileOrganization/FileOrganizationQuery.cs create mode 100644 MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs (limited to 'MediaBrowser.Model/FileOrganization') diff --git a/MediaBrowser.Model/FileOrganization/FileOrganizationQuery.cs b/MediaBrowser.Model/FileOrganization/FileOrganizationQuery.cs new file mode 100644 index 0000000000..18287534ea --- /dev/null +++ b/MediaBrowser.Model/FileOrganization/FileOrganizationQuery.cs @@ -0,0 +1,18 @@ + +namespace MediaBrowser.Model.FileOrganization +{ + public class FileOrganizationResultQuery + { + /// + /// Skips over a given number of items within the results. Use for paging. + /// + /// The start index. + public int? StartIndex { get; set; } + + /// + /// The maximum number of items to return + /// + /// The limit. + public int? Limit { get; set; } + } +} diff --git a/MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs b/MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs new file mode 100644 index 0000000000..505f0e2da5 --- /dev/null +++ b/MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs @@ -0,0 +1,45 @@ +using System; + +namespace MediaBrowser.Model.FileOrganization +{ + public class FileOrganizationResult + { + /// + /// Gets or sets the original path. + /// + /// The original path. + public string OriginalPath { get; set; } + + /// + /// Gets or sets the target path. + /// + /// The target path. + public string TargetPath { get; set; } + + /// + /// Gets or sets the date. + /// + /// The date. + public DateTime Date { get; set; } + + /// + /// Gets or sets the error message. + /// + /// The error message. + public string ErrorMessage { get; set; } + + /// + /// Gets or sets the status. + /// + /// The status. + public FileSortingStatus Status { get; set; } + } + + public enum FileSortingStatus + { + Success, + Failure, + SkippedExisting, + SkippedTrial + } +} -- cgit v1.2.3