ItemValue.cs 983 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Jellyfin.Data.Entities;
  4. /// <summary>
  5. /// Represents an ItemValue for a BaseItem.
  6. /// </summary>
  7. public class ItemValue
  8. {
  9. /// <summary>
  10. /// Gets or Sets the ItemValueId.
  11. /// </summary>
  12. public required Guid ItemValueId { get; set; }
  13. /// <summary>
  14. /// Gets or Sets the Type.
  15. /// </summary>
  16. public required ItemValueType Type { get; set; }
  17. /// <summary>
  18. /// Gets or Sets the Value.
  19. /// </summary>
  20. public required string Value { get; set; }
  21. /// <summary>
  22. /// Gets or Sets the sanitized Value.
  23. /// </summary>
  24. public required string CleanValue { get; set; }
  25. /// <summary>
  26. /// Gets or Sets all associated BaseItems.
  27. /// </summary>
  28. #pragma warning disable CA2227 // Collection properties should be read only
  29. public ICollection<ItemValueMap>? BaseItemsMap { get; set; }
  30. #pragma warning restore CA2227 // Collection properties should be read only
  31. }