mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-27 01:50:53 +01:00
Migrate Display Preferences to EF Core
This commit is contained in:
53
Jellyfin.Data/Enums/HomeSectionType.cs
Normal file
53
Jellyfin.Data/Enums/HomeSectionType.cs
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
20
Jellyfin.Data/Enums/IndexingKind.cs
Normal file
20
Jellyfin.Data/Enums/IndexingKind.cs
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
18
Jellyfin.Data/Enums/ScrollDirection.cs
Normal file
18
Jellyfin.Data/Enums/ScrollDirection.cs
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
18
Jellyfin.Data/Enums/SortOrder.cs
Normal file
18
Jellyfin.Data/Enums/SortOrder.cs
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
38
Jellyfin.Data/Enums/ViewType.cs
Normal file
38
Jellyfin.Data/Enums/ViewType.cs
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user