QrRapido/Models/ViewModels/QRGenerationRequest.cs
Ricardo Carneiro 2ccd35bb7d
Some checks failed
Deploy QR Rapido / test (push) Successful in 4m58s
Deploy QR Rapido / build-and-push (push) Failing after 1m39s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Has been skipped
first commit
2025-07-28 11:46:48 -03:00

32 lines
1.3 KiB
C#

namespace QRRapidoApp.Models.ViewModels
{
public class QRGenerationRequest
{
public string Type { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public string QuickStyle { get; set; } = "classic";
public string PrimaryColor { get; set; } = "#000000";
public string BackgroundColor { get; set; } = "#FFFFFF";
public int Size { get; set; } = 300;
public int Margin { get; set; } = 2;
public string CornerStyle { get; set; } = "square";
public bool OptimizeForSpeed { get; set; } = true;
public string Language { get; set; } = "pt-BR";
public bool IsPremium { get; set; } = false;
public bool HasLogo { get; set; } = false;
public byte[]? Logo { get; set; }
}
public class QRGenerationResult
{
public string QRCodeBase64 { get; set; } = string.Empty;
public string QRId { get; set; } = string.Empty;
public long GenerationTimeMs { get; set; }
public bool FromCache { get; set; }
public int Size { get; set; }
public QRGenerationRequest? RequestSettings { get; set; }
public int? RemainingQRs { get; set; } // For free users
public bool Success { get; set; } = true;
public string? ErrorMessage { get; set; }
}
}