MediaSegmentGenerationRequest.cs 682 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using Jellyfin.Database.Implementations.Entities;
  4. using MediaBrowser.Model.MediaSegments;
  5. namespace MediaBrowser.Model;
  6. /// <summary>
  7. /// Model containing the arguments for enumerating the requested media item.
  8. /// </summary>
  9. public record MediaSegmentGenerationRequest
  10. {
  11. /// <summary>
  12. /// Gets the Id to the BaseItem the segments should be extracted from.
  13. /// </summary>
  14. public Guid ItemId { get; init; }
  15. /// <summary>
  16. /// Gets existing media segments generated on an earlier scan by this provider.
  17. /// </summary>
  18. public required IReadOnlyList<MediaSegmentDto> ExistingSegments { get; init; }
  19. }