Kavita/API/DTOs/Statistics/FileExtensionBreakdownDto.cs
2025-05-04 07:14:44 -07:00

25 lines
567 B
C#

using System.Collections.Generic;
using API.Entities.Enums;
namespace API.DTOs.Statistics;
#nullable enable
public sealed record FileExtensionDto
{
public string? Extension { get; set; }
public MangaFormat Format { get; set; }
public long TotalSize { get; set; }
public long TotalFiles { get; set; }
}
public sealed record FileExtensionBreakdownDto
{
/// <summary>
/// Total bytes for all files
/// </summary>
public long TotalFileSize { get; set; }
public IList<FileExtensionDto> FileBreakdown { get; set; } = default!;
}