diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-09 23:22:36 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-09 23:22:36 -0500 |
| commit | 31d079f1baea895b5cb0f1a737140ab94dc9a4fe (patch) | |
| tree | 1ed702bbed6edb1cc7f505c92e42a4263b1f8ed3 /MediaBrowser.Model/DTO/ItemSortBy.cs | |
| parent | 913cb3c564e58dd440dbf3af81f38aad68c1ac2a (diff) | |
unified the two sorting api's
Diffstat (limited to 'MediaBrowser.Model/DTO/ItemSortBy.cs')
| -rw-r--r-- | MediaBrowser.Model/DTO/ItemSortBy.cs | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/MediaBrowser.Model/DTO/ItemSortBy.cs b/MediaBrowser.Model/DTO/ItemSortBy.cs index 30cd1c3a4..141690a55 100644 --- a/MediaBrowser.Model/DTO/ItemSortBy.cs +++ b/MediaBrowser.Model/DTO/ItemSortBy.cs @@ -2,41 +2,53 @@ namespace MediaBrowser.Model.Dto { /// <summary> - /// Enum ItemSortBy + /// These represent sort orders that are known by the core /// </summary> - public enum ItemSortBy + public static class ItemSortBy { /// <summary> /// The album /// </summary> - Album, + public const string Album = "Album"; /// <summary> /// The album artist /// </summary> - AlbumArtist, + public const string AlbumArtist = "AlbumArtist"; /// <summary> /// The artist /// </summary> - Artist, + public const string Artist = "Artist"; /// <summary> /// The date created /// </summary> - DateCreated, + public const string DateCreated = "DateCreated"; /// <summary> /// The date played /// </summary> - DatePlayed, + public const string DatePlayed = "DatePlayed"; /// <summary> /// The premiere date /// </summary> - PremiereDate, + public const string PremiereDate = "PremiereDate"; /// <summary> /// The sort name /// </summary> - SortName, + public const string SortName = "SortName"; /// <summary> /// The random /// </summary> - Random + 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"; } } |
