export enum InputType { EditText = 'editText', ComboBox = 'comboBox', DatePicker = 'datePicker', Selector = 'selector', CheckBox = 'checkBox', WebView = 'webView', Button = 'button', Send = 'send', Delete = 'delete', Modify = 'modify', Hidden = 'hidden', Action = 'action', DateTimePicker = 'dateTimePicker' } export enum InputImportance { High = 'high', Middle = 'mid', Low = 'low' } export class Input { //Required protected type: InputType; protected name: string; //Optional protected value: string = ''; protected importance: InputImportance = InputImportance.Middle; constructor(type: InputType, name: string) { this.type = type; this.name = name; } setType(type: InputType) { this.type = type; return this; } setName(name: string) { this.name = name; return this; } setValue(value: string) { this.value = value; return this; } setImportance(importance: InputImportance) { this.importance = importance; return this; } get Importance(): InputImportance { return this.importance; } get Type(): InputType { return this.type; } get Name(): string { return this.name; } get Value(): string { return this.value; } toJSON(): any { return {} } }