aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/Security/DeviceOptions.cs
blob: 531f66c627b87562ef2edc273a214b6812c7d589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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; }
    }
}