You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
908 B
33 lines
908 B
namespace backend.Models
|
|
{
|
|
|
|
public class HeaderTemplate
|
|
{
|
|
public string Header { get; set; }
|
|
public string HeaderRegex { get; set; }
|
|
public string ValueRegex { get; set; }
|
|
public bool Nullable { get; set; }
|
|
|
|
public HeaderTemplate(string header, string headerRegex, string valueRegex, bool nullable)
|
|
{
|
|
this.Header = header;
|
|
this.HeaderRegex = headerRegex;
|
|
this.ValueRegex = valueRegex;
|
|
this.Nullable = nullable;
|
|
}
|
|
}
|
|
|
|
public class TemplateConfiguration
|
|
{
|
|
public bool ValidateData { get; set; }
|
|
public List<HeaderTemplate> HeaderTemplate { get; set; }
|
|
|
|
public TemplateConfiguration(bool ValidateData, List<HeaderTemplate> headerTemplate)
|
|
{
|
|
this.ValidateData = ValidateData;
|
|
this.HeaderTemplate = headerTemplate;
|
|
}
|
|
}
|
|
|
|
|
|
} |