using System; using System.ComponentModel.DataAnnotations.Schema; using Jellyfin.Data.Enums; namespace Jellyfin.Data.Entities; /// /// An entity representing the metadata for a group of trickplay tiles. /// public class MediaSegment { /// /// Gets or sets the id of the media segment. /// [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Guid Id { get; set; } /// /// Gets or sets the id of the associated item. /// public Guid ItemId { get; set; } /// /// Gets or sets the Type of content this segment defines. /// public MediaSegmentType Type { get; set; } /// /// Gets or sets the end of the segment. /// public long EndTicks { get; set; } /// /// Gets or sets the start of the segment. /// public long StartTicks { get; set; } /// /// Gets or sets Id of the media segment provider this entry originates from. /// public required string SegmentProviderId { get; set; } }