Files
jellyfin-jellyfin-1/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/AttachmentStreamInfo.cs

50 lines
1.3 KiB
C#
Raw Normal View History

2024-09-08 16:56:14 +00:00
using System;
namespace Jellyfin.Data.Entities;
2024-10-09 23:22:21 +00:00
/// <summary>
/// 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>
public required BaseItemEntity Item { get; set; }
2024-10-08 19:53:26 +00:00
2024-10-09 23:22:21 +00:00
/// <summary>
/// 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; }
}