From d4bdd42acfda160e0a78ac302adc92802b237584 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 19 Jan 2014 13:08:17 -0500 Subject: #680 - Support new episode file sorting added dummy results repository --- .../FileSorting/FileSortingResult.cs | 45 ++++++++++++++++++++++ .../FileSorting/FileSortingResultQuery.cs | 18 +++++++++ 2 files changed, 63 insertions(+) create mode 100644 MediaBrowser.Model/FileSorting/FileSortingResult.cs create mode 100644 MediaBrowser.Model/FileSorting/FileSortingResultQuery.cs (limited to 'MediaBrowser.Model/FileSorting') diff --git a/MediaBrowser.Model/FileSorting/FileSortingResult.cs b/MediaBrowser.Model/FileSorting/FileSortingResult.cs new file mode 100644 index 000000000..43c5e7ede --- /dev/null +++ b/MediaBrowser.Model/FileSorting/FileSortingResult.cs @@ -0,0 +1,45 @@ +using System; + +namespace MediaBrowser.Model.FileSorting +{ + public class FileSortingResult + { + /// + /// 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 + } +} diff --git a/MediaBrowser.Model/FileSorting/FileSortingResultQuery.cs b/MediaBrowser.Model/FileSorting/FileSortingResultQuery.cs new file mode 100644 index 000000000..7a83cad7b --- /dev/null +++ b/MediaBrowser.Model/FileSorting/FileSortingResultQuery.cs @@ -0,0 +1,18 @@ + +namespace MediaBrowser.Model.FileSorting +{ + public class FileSortingResultQuery + { + /// + /// 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; } + } +} -- cgit v1.2.3