| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Threading.Tasks; |
| | | 5 | | |
| | | 6 | | namespace SVETA.Api.Data.DTO |
| | | 7 | | { |
| | | 8 | | public class CatalogFiltersDTO |
| | | 9 | | { |
| | | 10 | | public string Key { get; set; } |
| | | 11 | | public string[] Wrappers { get; set; } |
| | | 12 | | public TemplateOptionDTO TemplateOptions { get; set; } |
| | | 13 | | public string FieldGroupClassName { get; set; } |
| | | 14 | | public List<FieldGroupDTO> FieldGroup { get; set; } |
| | | 15 | | } |
| | | 16 | | public class TemplateOptionDTO |
| | | 17 | | { |
| | | 18 | | public string Label { get; set; } |
| | | 19 | | } |
| | | 20 | | public class FieldGroupDTO |
| | | 21 | | { |
| | | 22 | | public string Type { get; set; } |
| | | 23 | | public string Key { get; set; } |
| | | 24 | | public FieldGroupTemplateOptions TemplateOptions { get; set; } |
| | | 25 | | public string ClassName { get; set; } |
| | | 26 | | } |
| | | 27 | | public class FieldGroupTemplateOptions |
| | | 28 | | { |
| | | 29 | | public string Label { get; set; } |
| | | 30 | | public string Placeholder { get; set; } |
| | | 31 | | |
| | | 32 | | public FieldGroupTemplateOptions() { } |
| | | 33 | | |
| | | 34 | | public FieldGroupTemplateOptions(string label, string placeholder) |
| | | 35 | | { |
| | | 36 | | Label = label; |
| | | 37 | | Placeholder = placeholder; |
| | | 38 | | } |
| | | 39 | | } |
| | | 40 | | |
| | | 41 | | public class FieldPriceGroupTemplateOptions: FieldGroupTemplateOptions |
| | | 42 | | { |
| | | 43 | | public decimal PriceCount { get; set; } |
| | | 44 | | |
| | | 45 | | public FieldPriceGroupTemplateOptions(){ } |
| | | 46 | | |
| | | 47 | | public FieldPriceGroupTemplateOptions(string label, string placeholder, decimal priceCount) : base(label, placeh |
| | | 48 | | { |
| | | 49 | | PriceCount = priceCount; |
| | | 50 | | } |
| | | 51 | | } |
| | | 52 | | public static class FieldType |
| | | 53 | | { |
| | | 54 | | public static string checkbox = "checkbox"; |
| | | 55 | | public static string input = "input"; |
| | | 56 | | public static string radio = "radio"; |
| | | 57 | | } |
| | | 58 | | public static class GroupType |
| | | 59 | | { |
| | 0 | 60 | | public static string verticalGroup = "vertical-group"; |
| | 0 | 61 | | public static string horizontalGroup = "horizontal-group"; |
| | | 62 | | } |
| | | 63 | | } |