QrRapido/Models/LogoReadability.cs
Ricardo Carneiro 8ab0b913e2
Some checks failed
Deploy QR Rapido / test (push) Successful in 26s
Deploy QR Rapido / build-and-push (push) Failing after 5s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Has been skipped
fix: Melhorar a leitura mesmo com o logotipo maior.
2025-08-04 01:50:54 -03:00

34 lines
1.1 KiB
C#

namespace QRRapidoApp.Models
{
public class LogoReadabilityInfo
{
public bool HasLogo { get; set; }
public int LogoSizePercent { get; set; }
public int ReadabilityScore { get; set; } // 0-100
public string DifficultyLevel { get; set; } = string.Empty; // VeryEasy, Easy, Medium, Hard, VeryHard
public string UserMessage { get; set; } = string.Empty;
public List<string> Tips { get; set; } = new();
public LogoComplexity LogoComplexity { get; set; } = new();
}
public class LogoComplexity
{
public int Width { get; set; }
public int Height { get; set; }
public bool IsSquare { get; set; }
public bool HasTransparency { get; set; }
public int DominantColorCount { get; set; }
public double ContrastRatio { get; set; }
public string FileFormat { get; set; } = string.Empty;
public int FileSizeBytes { get; set; }
}
public enum ReadabilityLevel
{
VeryEasy = 85, // 85-100
Easy = 70, // 70-84
Medium = 55, // 55-69
Hard = 40, // 40-54
VeryHard = 0 // 0-39
}
}