Add device options entity
This commit is contained in:
parent
271b4cadb7
commit
9cd5352358
35
Jellyfin.Data/Entities/Security/DeviceOptions.cs
Normal file
35
Jellyfin.Data/Entities/Security/DeviceOptions.cs
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace Jellyfin.Data.Entities.Security
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An entity representing custom options for a device.
|
||||||
|
/// </summary>
|
||||||
|
public class DeviceOptions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeviceOptions"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="deviceId">The device id.</param>
|
||||||
|
public DeviceOptions(string deviceId)
|
||||||
|
{
|
||||||
|
DeviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the id.
|
||||||
|
/// </summary>
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
public int Id { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the device id.
|
||||||
|
/// </summary>
|
||||||
|
public string DeviceId { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the custom name.
|
||||||
|
/// </summary>
|
||||||
|
public string? CustomName { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user