QrRapido/Models/ViewModels/PremiumViewModels.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.2 KiB
C#

namespace QRRapidoApp.Models.ViewModels
{
public class UpgradeViewModel
{
public string CurrentPlan { get; set; } = "Free";
public decimal PremiumPrice { get; set; }
public Dictionary<string, bool> Features { get; set; } = new();
public int RemainingQRs { get; set; }
public int DaysUntilAdExpiry { get; set; }
public bool IsAdFreeActive { get; set; }
}
public class PremiumDashboardViewModel
{
public User User { get; set; } = new();
public int QRCodesThisMonth { get; set; }
public int TotalQRCodes { get; set; }
public string SubscriptionStatus { get; set; } = string.Empty;
public DateTime? NextBillingDate { get; set; }
public List<QRCodeHistory> RecentQRCodes { get; set; } = new();
public Dictionary<string, int> QRTypeStats { get; set; } = new();
}
public class AdFreeStatusViewModel
{
public bool IsAdFree { get; set; }
public int TimeRemaining { get; set; } // minutes
public bool IsPremium { get; set; }
public DateTime? ExpiryDate { get; set; }
public string SessionType { get; set; } = string.Empty;
}
}