1 | export enum InputType {
|
2 | EditText = 'editText',
|
3 | ComboBox = 'comboBox',
|
4 | DatePicker = 'datePicker',
|
5 | Selector = 'selector',
|
6 | CheckBox = 'checkBox',
|
7 | WebView = 'webView',
|
8 | Button = 'button',
|
9 | Send = 'send',
|
10 | Delete = 'delete',
|
11 | Modify = 'modify',
|
12 | Hidden = 'hidden',
|
13 | Action = 'action',
|
14 | DateTimePicker = 'dateTimePicker'
|
15 | }
|
16 |
|
17 | export enum InputImportance {
|
18 | High = 'high',
|
19 | Middle = 'mid',
|
20 | Low = 'low'
|
21 | }
|
22 |
|
23 | export class Input {
|
24 | private type: string = '';
|
25 | private name: string = '';
|
26 | private value: any = '';
|
27 | private importance: InputImportance = InputImportance.Middle;
|
28 |
|
29 | constructor (type: string, name: string) {
|
30 | this.type = type;
|
31 | this.name = name;
|
32 | }
|
33 |
|
34 | set Type(type: string) {
|
35 | this.type = type;
|
36 | }
|
37 |
|
38 | set Name(name: string) {
|
39 | this.name = name;
|
40 | }
|
41 |
|
42 | set Value(value: any) {
|
43 | this.value = value;
|
44 | }
|
45 |
|
46 | set Importance(importance: InputImportance) {
|
47 | this.importance = importance;
|
48 | }
|
49 |
|
50 | get Importance() {
|
51 | return this.importance;
|
52 | }
|
53 |
|
54 | get Type() {
|
55 | return this.type;
|
56 | }
|
57 |
|
58 | get Name() {
|
59 | return this.name;
|
60 | }
|
61 |
|
62 | get Value() {
|
63 | return this.value;
|
64 | }
|
65 |
|
66 | toJSON (): any {
|
67 | return {}
|
68 | }
|
69 | }
|