MediaSegment.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Jellyfin.Data.Enums;
  4. namespace Jellyfin.Data.Entities;
  5. /// <summary>
  6. /// An entity representing the metadata for a group of trickplay tiles.
  7. /// </summary>
  8. public class MediaSegment
  9. {
  10. /// <summary>
  11. /// Gets or sets the id of the media segment.
  12. /// </summary>
  13. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  14. public Guid Id { get; set; }
  15. /// <summary>
  16. /// Gets or sets the id of the associated item.
  17. /// </summary>
  18. public Guid ItemId { get; set; }
  19. /// <summary>
  20. /// Gets or sets the Type of content this segment defines.
  21. /// </summary>
  22. public MediaSegmentType Type { get; set; }
  23. /// <summary>
  24. /// Gets or sets the end of the segment.
  25. /// </summary>
  26. public long EndTicks { get; set; }
  27. /// <summary>
  28. /// Gets or sets the start of the segment.
  29. /// </summary>
  30. public long StartTicks { get; set; }
  31. /// <summary>
  32. /// Gets or sets Id of the media segment provider this entry originates from.
  33. /// </summary>
  34. public required string SegmentProviderId { get; set; }
  35. }