Convert ItemSortBy to enum (#9765)
* Convert ItemSortBy to enum * Rename Unknown to Defaultpull/10557/head
parent
21878577be
commit
c7a94d48ae
@ -0,0 +1,167 @@
|
||||
namespace Jellyfin.Data.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// These represent sort orders.
|
||||
/// </summary>
|
||||
public enum ItemSortBy
|
||||
{
|
||||
/// <summary>
|
||||
/// Default sort order.
|
||||
/// </summary>
|
||||
Default = 0,
|
||||
|
||||
/// <summary>
|
||||
/// The aired episode order.
|
||||
/// </summary>
|
||||
AiredEpisodeOrder = 1,
|
||||
|
||||
/// <summary>
|
||||
/// The album.
|
||||
/// </summary>
|
||||
Album = 2,
|
||||
|
||||
/// <summary>
|
||||
/// The album artist.
|
||||
/// </summary>
|
||||
AlbumArtist = 3,
|
||||
|
||||
/// <summary>
|
||||
/// The artist.
|
||||
/// </summary>
|
||||
Artist = 4,
|
||||
|
||||
/// <summary>
|
||||
/// The date created.
|
||||
/// </summary>
|
||||
DateCreated = 5,
|
||||
|
||||
/// <summary>
|
||||
/// The official rating.
|
||||
/// </summary>
|
||||
OfficialRating = 6,
|
||||
|
||||
/// <summary>
|
||||
/// The date played.
|
||||
/// </summary>
|
||||
DatePlayed = 7,
|
||||
|
||||
/// <summary>
|
||||
/// The premiere date.
|
||||
/// </summary>
|
||||
PremiereDate = 8,
|
||||
|
||||
/// <summary>
|
||||
/// The start date.
|
||||
/// </summary>
|
||||
StartDate = 9,
|
||||
|
||||
/// <summary>
|
||||
/// The sort name.
|
||||
/// </summary>
|
||||
SortName = 10,
|
||||
|
||||
/// <summary>
|
||||
/// The name.
|
||||
/// </summary>
|
||||
Name = 11,
|
||||
|
||||
/// <summary>
|
||||
/// The random.
|
||||
/// </summary>
|
||||
Random = 12,
|
||||
|
||||
/// <summary>
|
||||
/// The runtime.
|
||||
/// </summary>
|
||||
Runtime = 13,
|
||||
|
||||
/// <summary>
|
||||
/// The community rating.
|
||||
/// </summary>
|
||||
CommunityRating = 14,
|
||||
|
||||
/// <summary>
|
||||
/// The production year.
|
||||
/// </summary>
|
||||
ProductionYear = 15,
|
||||
|
||||
/// <summary>
|
||||
/// The play count.
|
||||
/// </summary>
|
||||
PlayCount = 16,
|
||||
|
||||
/// <summary>
|
||||
/// The critic rating.
|
||||
/// </summary>
|
||||
CriticRating = 17,
|
||||
|
||||
/// <summary>
|
||||
/// The IsFolder boolean.
|
||||
/// </summary>
|
||||
IsFolder = 18,
|
||||
|
||||
/// <summary>
|
||||
/// The IsUnplayed boolean.
|
||||
/// </summary>
|
||||
IsUnplayed = 19,
|
||||
|
||||
/// <summary>
|
||||
/// The IsPlayed boolean.
|
||||
/// </summary>
|
||||
IsPlayed = 20,
|
||||
|
||||
/// <summary>
|
||||
/// The series sort.
|
||||
/// </summary>
|
||||
SeriesSortName = 21,
|
||||
|
||||
/// <summary>
|
||||
/// The video bitrate.
|
||||
/// </summary>
|
||||
VideoBitRate = 22,
|
||||
|
||||
/// <summary>
|
||||
/// The air time.
|
||||
/// </summary>
|
||||
AirTime = 23,
|
||||
|
||||
/// <summary>
|
||||
/// The studio.
|
||||
/// </summary>
|
||||
Studio = 24,
|
||||
|
||||
/// <summary>
|
||||
/// The IsFavouriteOrLiked boolean.
|
||||
/// </summary>
|
||||
IsFavoriteOrLiked = 25,
|
||||
|
||||
/// <summary>
|
||||
/// The last content added date.
|
||||
/// </summary>
|
||||
DateLastContentAdded = 26,
|
||||
|
||||
/// <summary>
|
||||
/// The series last played date.
|
||||
/// </summary>
|
||||
SeriesDatePlayed = 27,
|
||||
|
||||
/// <summary>
|
||||
/// The parent index number.
|
||||
/// </summary>
|
||||
ParentIndexNumber = 28,
|
||||
|
||||
/// <summary>
|
||||
/// The index number.
|
||||
/// </summary>
|
||||
IndexNumber = 29,
|
||||
|
||||
/// <summary>
|
||||
/// The similarity score.
|
||||
/// </summary>
|
||||
SimilarityScore = 30,
|
||||
|
||||
/// <summary>
|
||||
/// The search score.
|
||||
/// </summary>
|
||||
SearchScore = 31,
|
||||
}
|
@ -1,163 +0,0 @@
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
/// <summary>
|
||||
/// These represent sort orders that are known by the core.
|
||||
/// </summary>
|
||||
public static class ItemSortBy
|
||||
{
|
||||
/// <summary>
|
||||
/// The aired episode order.
|
||||
/// </summary>
|
||||
public const string AiredEpisodeOrder = "AiredEpisodeOrder";
|
||||
|
||||
/// <summary>
|
||||
/// The album.
|
||||
/// </summary>
|
||||
public const string Album = "Album";
|
||||
|
||||
/// <summary>
|
||||
/// The album artist.
|
||||
/// </summary>
|
||||
public const string AlbumArtist = "AlbumArtist";
|
||||
|
||||
/// <summary>
|
||||
/// The artist.
|
||||
/// </summary>
|
||||
public const string Artist = "Artist";
|
||||
|
||||
/// <summary>
|
||||
/// The date created.
|
||||
/// </summary>
|
||||
public const string DateCreated = "DateCreated";
|
||||
|
||||
/// <summary>
|
||||
/// The official rating.
|
||||
/// </summary>
|
||||
public const string OfficialRating = "OfficialRating";
|
||||
|
||||
/// <summary>
|
||||
/// The date played.
|
||||
/// </summary>
|
||||
public const string DatePlayed = "DatePlayed";
|
||||
|
||||
/// <summary>
|
||||
/// The premiere date.
|
||||
/// </summary>
|
||||
public const string PremiereDate = "PremiereDate";
|
||||
|
||||
/// <summary>
|
||||
/// The start date.
|
||||
/// </summary>
|
||||
public const string StartDate = "StartDate";
|
||||
|
||||
/// <summary>
|
||||
/// The sort name.
|
||||
/// </summary>
|
||||
public const string SortName = "SortName";
|
||||
|
||||
/// <summary>
|
||||
/// The name.
|
||||
/// </summary>
|
||||
public const string Name = "Name";
|
||||
|
||||
/// <summary>
|
||||
/// The random.
|
||||
/// </summary>
|
||||
public const string Random = "Random";
|
||||
|
||||
/// <summary>
|
||||
/// The runtime.
|
||||
/// </summary>
|
||||
public const string Runtime = "Runtime";
|
||||
|
||||
/// <summary>
|
||||
/// The community rating.
|
||||
/// </summary>
|
||||
public const string CommunityRating = "CommunityRating";
|
||||
|
||||
/// <summary>
|
||||
/// The production year.
|
||||
/// </summary>
|
||||
public const string ProductionYear = "ProductionYear";
|
||||
|
||||
/// <summary>
|
||||
/// The play count.
|
||||
/// </summary>
|
||||
public const string PlayCount = "PlayCount";
|
||||
|
||||
/// <summary>
|
||||
/// The critic rating.
|
||||
/// </summary>
|
||||
public const string CriticRating = "CriticRating";
|
||||
|
||||
/// <summary>
|
||||
/// The IsFolder boolean.
|
||||
/// </summary>
|
||||
public const string IsFolder = "IsFolder";
|
||||
|
||||
/// <summary>
|
||||
/// The IsUnplayed boolean.
|
||||
/// </summary>
|
||||
public const string IsUnplayed = "IsUnplayed";
|
||||
|
||||
/// <summary>
|
||||
/// The IsPlayed boolean.
|
||||
/// </summary>
|
||||
public const string IsPlayed = "IsPlayed";
|
||||
|
||||
/// <summary>
|
||||
/// The series sort.
|
||||
/// </summary>
|
||||
public const string SeriesSortName = "SeriesSortName";
|
||||
|
||||
/// <summary>
|
||||
/// The video bitrate.
|
||||
/// </summary>
|
||||
public const string VideoBitRate = "VideoBitRate";
|
||||
|
||||
/// <summary>
|
||||
/// The air time.
|
||||
/// </summary>
|
||||
public const string AirTime = "AirTime";
|
||||
|
||||
/// <summary>
|
||||
/// The studio.
|
||||
/// </summary>
|
||||
public const string Studio = "Studio";
|
||||
|
||||
/// <summary>
|
||||
/// The IsFavouriteOrLiked boolean.
|
||||
/// </summary>
|
||||
public const string IsFavoriteOrLiked = "IsFavoriteOrLiked";
|
||||
|
||||
/// <summary>
|
||||
/// The last content added date.
|
||||
/// </summary>
|
||||
public const string DateLastContentAdded = "DateLastContentAdded";
|
||||
|
||||
/// <summary>
|
||||
/// The series last played date.
|
||||
/// </summary>
|
||||
public const string SeriesDatePlayed = "SeriesDatePlayed";
|
||||
|
||||
/// <summary>
|
||||
/// The parent index number.
|
||||
/// </summary>
|
||||
public const string ParentIndexNumber = "ParentIndexNumber";
|
||||
|
||||
/// <summary>
|
||||
/// The index number.
|
||||
/// </summary>
|
||||
public const string IndexNumber = "IndexNumber";
|
||||
|
||||
/// <summary>
|
||||
/// The similarity score.
|
||||
/// </summary>
|
||||
public const string SimilarityScore = "SimilarityScore";
|
||||
|
||||
/// <summary>
|
||||
/// The search score.
|
||||
/// </summary>
|
||||
public const string SearchScore = "SearchScore";
|
||||
}
|
||||
}
|
Loading…
Reference in new issue