QrRapido/Models/DTOs/QRResponseDto.cs
Ricardo Carneiro 4570e9b70b
All checks were successful
Deploy QR Rapido / test (push) Successful in 51s
Deploy QR Rapido / build-and-push (push) Successful in 15m14s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Successful in 3m9s
feat: add monthly quota to API response body
Add monthlyQuotaRemaining/monthlyQuotaLimit fields to QRResponseDto
populated from X-Quota-* headers set by rate limiter. MCP server
now displays quota in tool result text instead of web credits.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 22:01:20 -03:00

28 lines
1.1 KiB
C#

namespace QRRapidoApp.Models.DTOs
{
public class QRResponseDto
{
public bool Success { get; set; }
public string? QRCodeBase64 { get; set; }
public string? QRId { get; set; }
public string? Message { get; set; }
public string? ErrorCode { get; set; }
public int RemainingCredits { get; set; }
public int RemainingFreeQRs { get; set; }
public bool FromCache { get; set; }
public string? NewDeviceId { get; set; }
public long GenerationTimeMs { get; set; }
/// <summary>Output image format: "png", "webp" or "svg".</summary>
public string Format { get; set; } = "png";
/// <summary>MIME type of the encoded image (e.g. "image/png", "image/webp").</summary>
public string MimeType { get; set; } = "image/png";
/// <summary>Monthly API quota remaining (from rate limiter). -1 = unlimited.</summary>
public int MonthlyQuotaRemaining { get; set; } = -1;
/// <summary>Monthly API quota limit. -1 = unlimited.</summary>
public int MonthlyQuotaLimit { get; set; } = -1;
}
}