2024-09-08 16:56:14 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Data.Entities;
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
2025-01-25 21:04:37 -05:00
|
|
|
/// Provides information about an Attachment to an <see cref="BaseItemEntity"/>.
|
2024-10-09 23:22:21 +00:00
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public class AttachmentStreamInfo
|
|
|
|
|
{
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the <see cref="BaseItemEntity"/> reference.
|
|
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public required Guid ItemId { get; set; }
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the <see cref="BaseItemEntity"/> reference.
|
|
|
|
|
/// </summary>
|
2024-10-09 09:53:39 +00:00
|
|
|
public required BaseItemEntity Item { get; set; }
|
2024-10-08 19:53:26 +00:00
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
2025-01-25 21:04:37 -05:00
|
|
|
/// Gets or Sets the index within the source file.
|
2024-10-09 23:22:21 +00:00
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public required int Index { get; set; }
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the codec of the attachment.
|
|
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public required string Codec { get; set; }
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the codec tag of the attachment.
|
|
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public string? CodecTag { get; set; }
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the comment of the attachment.
|
|
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public string? Comment { get; set; }
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the filename of the attachment.
|
|
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public string? Filename { get; set; }
|
|
|
|
|
|
2024-10-09 23:22:21 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or Sets the attachments mimetype.
|
|
|
|
|
/// </summary>
|
2024-09-08 16:56:14 +00:00
|
|
|
public string? MimeType { get; set; }
|
|
|
|
|
}
|