aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-06-03 12:27:59 +0300
committerGitHub <noreply@github.com>2020-06-03 12:27:59 +0300
commit40502a33e0f0e3c84487be6d3eff2be35c1448ad (patch)
tree93fc2f6b245e3958579957d5f3725d5bc9111680 /Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
parent668e10ceb79fcce5713fced0cf8e6fc055105e82 (diff)
parent4748105dce13c0fe0b4d8fcbf44f26033d314b26 (diff)
Merge pull request #3203 from Bond-009/warn18
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
Diffstat (limited to 'Emby.Server.Implementations/Sorting/IsPlayedComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/IsPlayedComparer.cs38
1 files changed, 20 insertions, 18 deletions
diff --git a/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs b/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
index da3f3dd25..39d9bc68e 100644
--- a/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
+++ b/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Sorting;
@@ -14,6 +16,24 @@ namespace Emby.Server.Implementations.Sorting
public User User { get; set; }
/// <summary>
+ /// Gets the name.
+ /// </summary>
+ /// <value>The name.</value>
+ public string Name => ItemSortBy.IsUnplayed;
+
+ /// <summary>
+ /// Gets or sets the user data repository.
+ /// </summary>
+ /// <value>The user data repository.</value>
+ public IUserDataManager UserDataRepository { get; set; }
+
+ /// <summary>
+ /// Gets or sets the user manager.
+ /// </summary>
+ /// <value>The user manager.</value>
+ public IUserManager UserManager { get; set; }
+
+ /// <summary>
/// Compares the specified x.
/// </summary>
/// <param name="x">The x.</param>
@@ -33,23 +53,5 @@ namespace Emby.Server.Implementations.Sorting
{
return x.IsPlayed(User) ? 0 : 1;
}
-
- /// <summary>
- /// Gets the name.
- /// </summary>
- /// <value>The name.</value>
- public string Name => ItemSortBy.IsUnplayed;
-
- /// <summary>
- /// Gets or sets the user data repository.
- /// </summary>
- /// <value>The user data repository.</value>
- public IUserDataManager UserDataRepository { get; set; }
-
- /// <summary>
- /// Gets or sets the user manager.
- /// </summary>
- /// <value>The user manager.</value>
- public IUserManager UserManager { get; set; }
}
}