diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-06-30 21:44:41 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-07-17 16:11:53 -0400 |
| commit | ab396225eaf486932fdb2f23eefa1cbfecbb27f4 (patch) | |
| tree | b225cd9617e14ae1f0386f9ff8aa85a8a433e424 /Jellyfin.Data/Enums | |
| parent | 175e7b45e56fb97b0f9bdddd99c195af3ecabcc6 (diff) | |
Migrate Display Preferences to EF Core
Diffstat (limited to 'Jellyfin.Data/Enums')
| -rw-r--r-- | Jellyfin.Data/Enums/HomeSectionType.cs | 53 | ||||
| -rw-r--r-- | Jellyfin.Data/Enums/IndexingKind.cs | 20 | ||||
| -rw-r--r-- | Jellyfin.Data/Enums/ScrollDirection.cs | 18 | ||||
| -rw-r--r-- | Jellyfin.Data/Enums/SortOrder.cs | 18 | ||||
| -rw-r--r-- | Jellyfin.Data/Enums/ViewType.cs | 38 |
5 files changed, 147 insertions, 0 deletions
diff --git a/Jellyfin.Data/Enums/HomeSectionType.cs b/Jellyfin.Data/Enums/HomeSectionType.cs new file mode 100644 index 000000000..be764c592 --- /dev/null +++ b/Jellyfin.Data/Enums/HomeSectionType.cs @@ -0,0 +1,53 @@ +namespace Jellyfin.Data.Enums +{ + /// <summary> + /// An enum representing the different options for the home screen sections. + /// </summary> + public enum HomeSectionType + { + /// <summary> + /// My Media. + /// </summary> + SmallLibraryTiles = 0, + + /// <summary> + /// My Media Small. + /// </summary> + LibraryButtons = 1, + + /// <summary> + /// Active Recordings. + /// </summary> + ActiveRecordings = 2, + + /// <summary> + /// Continue Watching. + /// </summary> + Resume = 3, + + /// <summary> + /// Continue Listening. + /// </summary> + ResumeAudio = 4, + + /// <summary> + /// Latest Media. + /// </summary> + LatestMedia = 5, + + /// <summary> + /// Next Up. + /// </summary> + NextUp = 6, + + /// <summary> + /// Live TV. + /// </summary> + LiveTv = 7, + + /// <summary> + /// None. + /// </summary> + None = 8 + } +} diff --git a/Jellyfin.Data/Enums/IndexingKind.cs b/Jellyfin.Data/Enums/IndexingKind.cs new file mode 100644 index 000000000..c4d8e70ca --- /dev/null +++ b/Jellyfin.Data/Enums/IndexingKind.cs @@ -0,0 +1,20 @@ +namespace Jellyfin.Data.Enums +{ + public enum IndexingKind + { + /// <summary> + /// Index by the premiere date. + /// </summary> + PremiereDate, + + /// <summary> + /// Index by the production year. + /// </summary> + ProductionYear, + + /// <summary> + /// Index by the community rating. + /// </summary> + CommunityRating + } +} diff --git a/Jellyfin.Data/Enums/ScrollDirection.cs b/Jellyfin.Data/Enums/ScrollDirection.cs new file mode 100644 index 000000000..382f585ba --- /dev/null +++ b/Jellyfin.Data/Enums/ScrollDirection.cs @@ -0,0 +1,18 @@ +namespace Jellyfin.Data.Enums +{ + /// <summary> + /// An enum representing the axis that should be scrolled. + /// </summary> + public enum ScrollDirection + { + /// <summary> + /// Horizontal scrolling direction. + /// </summary> + Horizontal, + + /// <summary> + /// Vertical scrolling direction. + /// </summary> + Vertical + } +} diff --git a/Jellyfin.Data/Enums/SortOrder.cs b/Jellyfin.Data/Enums/SortOrder.cs new file mode 100644 index 000000000..309fa7877 --- /dev/null +++ b/Jellyfin.Data/Enums/SortOrder.cs @@ -0,0 +1,18 @@ +namespace Jellyfin.Data.Enums +{ + /// <summary> + /// An enum representing the sorting order. + /// </summary> + public enum SortOrder + { + /// <summary> + /// Sort in increasing order. + /// </summary> + Ascending, + + /// <summary> + /// Sort in decreasing order. + /// </summary> + Descending + } +} diff --git a/Jellyfin.Data/Enums/ViewType.cs b/Jellyfin.Data/Enums/ViewType.cs new file mode 100644 index 000000000..595429ab1 --- /dev/null +++ b/Jellyfin.Data/Enums/ViewType.cs @@ -0,0 +1,38 @@ +namespace Jellyfin.Data.Enums +{ + /// <summary> + /// An enum representing the type of view for a library or collection. + /// </summary> + public enum ViewType + { + /// <summary> + /// Shows banners. + /// </summary> + Banner = 0, + + /// <summary> + /// Shows a list of content. + /// </summary> + List = 1, + + /// <summary> + /// Shows poster artwork. + /// </summary> + Poster = 2, + + /// <summary> + /// Shows poster artwork with a card containing the name and year. + /// </summary> + PosterCard = 3, + + /// <summary> + /// Shows a thumbnail. + /// </summary> + Thumb = 4, + + /// <summary> + /// Shows a thumbnail with a card containing the name and year. + /// </summary> + ThumbCard = 5 + } +} |
