Chapter.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. namespace Jellyfin.Data.Entities;
  3. /// <summary>
  4. /// The Chapter entity.
  5. /// </summary>
  6. public class Chapter
  7. {
  8. /// <summary>
  9. /// Gets or Sets the <see cref="BaseItemEntity"/> reference id.
  10. /// </summary>
  11. public required Guid ItemId { get; set; }
  12. /// <summary>
  13. /// Gets or Sets the <see cref="BaseItemEntity"/> reference.
  14. /// </summary>
  15. public required BaseItemEntity Item { get; set; }
  16. /// <summary>
  17. /// Gets or Sets the chapters index in Item.
  18. /// </summary>
  19. public required int ChapterIndex { get; set; }
  20. /// <summary>
  21. /// Gets or Sets the position within the source file.
  22. /// </summary>
  23. public required long StartPositionTicks { get; set; }
  24. /// <summary>
  25. /// Gets or Sets the common name.
  26. /// </summary>
  27. public string? Name { get; set; }
  28. /// <summary>
  29. /// Gets or Sets the image path.
  30. /// </summary>
  31. public string? ImagePath { get; set; }
  32. /// <summary>
  33. /// Gets or Sets the time the image was last modified.
  34. /// </summary>
  35. public DateTime? ImageDateModified { get; set; }
  36. }