27 lines
833 B
C#
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;
|
|
}
|
|
}
|