MediaSegmentDto.cs 846 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using Jellyfin.Database.Implementations.Enums;
  3. namespace MediaBrowser.Model.MediaSegments;
  4. /// <summary>
  5. /// Api model for MediaSegment's.
  6. /// </summary>
  7. public class MediaSegmentDto
  8. {
  9. /// <summary>
  10. /// Gets or sets the id of the media segment.
  11. /// </summary>
  12. public Guid Id { get; set; }
  13. /// <summary>
  14. /// Gets or sets the id of the associated item.
  15. /// </summary>
  16. public Guid ItemId { get; set; }
  17. /// <summary>
  18. /// Gets or sets the type of content this segment defines.
  19. /// </summary>
  20. public MediaSegmentType Type { get; set; }
  21. /// <summary>
  22. /// Gets or sets the start of the segment.
  23. /// </summary>
  24. public long StartTicks { get; set; }
  25. /// <summary>
  26. /// Gets or sets the end of the segment.
  27. /// </summary>
  28. public long EndTicks { get; set; }
  29. }