DeviceOptions.cs 966 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System.ComponentModel.DataAnnotations.Schema;
  2. namespace Jellyfin.Data.Entities.Security
  3. {
  4. /// <summary>
  5. /// An entity representing custom options for a device.
  6. /// </summary>
  7. public class DeviceOptions
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="DeviceOptions"/> class.
  11. /// </summary>
  12. /// <param name="deviceId">The device id.</param>
  13. public DeviceOptions(string deviceId)
  14. {
  15. DeviceId = deviceId;
  16. }
  17. /// <summary>
  18. /// Gets the id.
  19. /// </summary>
  20. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  21. public int Id { get; private set; }
  22. /// <summary>
  23. /// Gets the device id.
  24. /// </summary>
  25. public string DeviceId { get; private set; }
  26. /// <summary>
  27. /// Gets or sets the custom name.
  28. /// </summary>
  29. public string? CustomName { get; set; }
  30. }
  31. }