Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 6, 2021 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/06c98e1b2d235d125292d3a4a2b441d5 to your computer and use it in GitHub Desktop.
Save bjoerntx/06c98e1b2d235d125292d3a4a2b441d5 to your computer and use it in GitHub Desktop.
public class FormSection {
public string Name { get; set; }
public List<SmartFormField> FormFields { get; set; }
}
public class SmartFormField {
public string Name { get; set; }
public string Text { get; set; }
}
public class SmartTextFormField : SmartFormField {
public string TypeName { get; set; } = "SmartTextFormField";
}
public class SmartCheckboxField : SmartFormField {
public bool Checked { get; set; }
public string TypeName { get; set; } = "SmartCheckboxField";
}
public class SmartDropdownField : SmartFormField {
public string[] Items { get; set; }
public string TypeName { get; set; } = "SmartDropdownField";
}
public class SmartDateField : SmartFormField {
public string Date { get; set; }
public string TypeName { get; set; } = "SmartDateField";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment