AttachmentStreamInfo.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. namespace Jellyfin.Database.Implementations.Entities;
  3. /// <summary>
  4. /// Provides information about an Attachment to an <see cref="BaseItemEntity"/>.
  5. /// </summary>
  6. public class AttachmentStreamInfo
  7. {
  8. /// <summary>
  9. /// Gets or Sets the <see cref="BaseItemEntity"/> reference.
  10. /// </summary>
  11. public required Guid ItemId { get; set; }
  12. /// <summary>
  13. /// Gets or Sets the <see cref="BaseItemEntity"/> reference.
  14. /// </summary>
  15. public required BaseItemEntity Item { get; set; }
  16. /// <summary>
  17. /// Gets or Sets the index within the source file.
  18. /// </summary>
  19. public required int Index { get; set; }
  20. /// <summary>
  21. /// Gets or Sets the codec of the attachment.
  22. /// </summary>
  23. public string? Codec { get; set; }
  24. /// <summary>
  25. /// Gets or Sets the codec tag of the attachment.
  26. /// </summary>
  27. public string? CodecTag { get; set; }
  28. /// <summary>
  29. /// Gets or Sets the comment of the attachment.
  30. /// </summary>
  31. public string? Comment { get; set; }
  32. /// <summary>
  33. /// Gets or Sets the filename of the attachment.
  34. /// </summary>
  35. public string? Filename { get; set; }
  36. /// <summary>
  37. /// Gets or Sets the attachments mimetype.
  38. /// </summary>
  39. public string? MimeType { get; set; }
  40. }