MediaSegmentDto.cs 920 B

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