OneConversorTemplate/OnlyOneAccessTemplate/Views/BaseViewModel.cs
Ricardo Carneiro 03e6c74ada feat: ratelimit
2025-06-05 11:52:03 -03:00

27 lines
833 B
C#

using OnlyOneAccessTemplate.Models;
namespace OnlyOneAccessTemplate.Views
{
public class BaseViewModel
{
public SiteConfiguration SiteConfig { get; set; }
public string CurrentLanguage { get; set; }
public bool ShowCaptcha { get; set; }
public string CaptchaChallenge { get; set; }
}
public class HomeViewModel : BaseViewModel
{
public List<ConverterConfig> AvailableConverters { get; set; } = new();
}
public class ConverterViewModel : BaseViewModel
{
public ConverterConfig Converter { get; set; }
public string InputContent { get; set; } = string.Empty;
public string OutputContent { get; set; } = string.Empty;
public bool HasError { get; set; }
public string ErrorMessage { get; set; } = string.Empty;
}
}