2021-03-17 23:08:11 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2020-07-01 01:44:41 +00:00
|
|
|
|
using Jellyfin.Data.Enums;
|
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Data.Entities
|
|
|
|
|
{
|
2020-07-10 02:28:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// An entity representing a section on the user's home page.
|
|
|
|
|
/// </summary>
|
2020-07-01 01:44:41 +00:00
|
|
|
|
public class HomeSection
|
|
|
|
|
{
|
2020-07-10 02:28:59 +00:00
|
|
|
|
/// <summary>
|
2021-03-17 23:08:11 +00:00
|
|
|
|
/// Gets the id.
|
2020-07-10 02:28:59 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Identity. Required.
|
|
|
|
|
/// </remarks>
|
2020-07-01 01:44:41 +00:00
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2021-03-17 23:08:11 +00:00
|
|
|
|
public int Id { get; private set; }
|
2020-07-01 01:44:41 +00:00
|
|
|
|
|
2020-07-10 02:28:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the Id of the associated display preferences.
|
|
|
|
|
/// </summary>
|
2020-07-16 23:05:35 +00:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Required.
|
|
|
|
|
/// </remarks>
|
2020-07-01 01:44:41 +00:00
|
|
|
|
public int DisplayPreferencesId { get; set; }
|
|
|
|
|
|
2020-07-10 02:28:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the order.
|
|
|
|
|
/// </summary>
|
2020-07-16 23:05:35 +00:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Required.
|
|
|
|
|
/// </remarks>
|
2020-07-01 01:44:41 +00:00
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
|
2020-07-10 02:28:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
2020-07-16 23:05:35 +00:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Required.
|
|
|
|
|
/// </remarks>
|
2020-07-01 01:44:41 +00:00
|
|
|
|
public HomeSectionType Type { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|