2020-07-09 22:28:59 -04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-06-30 21:44:41 -04:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using Jellyfin.Data.Enums;
|
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Data.Entities
|
|
|
|
|
{
|
2020-07-09 22:28:59 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// An entity representing a section on the user's home page.
|
|
|
|
|
/// </summary>
|
2020-06-30 21:44:41 -04:00
|
|
|
|
public class HomeSection
|
|
|
|
|
{
|
2020-07-09 22:28:59 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Identity. Required.
|
|
|
|
|
/// </remarks>
|
2020-06-30 21:44:41 -04:00
|
|
|
|
[Key]
|
|
|
|
|
[Required]
|
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
|
public int Id { get; protected set; }
|
|
|
|
|
|
2020-07-09 22:28:59 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the Id of the associated display preferences.
|
|
|
|
|
/// </summary>
|
2020-06-30 21:44:41 -04:00
|
|
|
|
public int DisplayPreferencesId { get; set; }
|
|
|
|
|
|
2020-07-09 22:28:59 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the order.
|
|
|
|
|
/// </summary>
|
2020-06-30 21:44:41 -04:00
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
|
2020-07-09 22:28:59 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
2020-06-30 21:44:41 -04:00
|
|
|
|
public HomeSectionType Type { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|