public UiStateMessage(UiState uiState, String uiText, UiDirection uiDirection, InputOption[] inputOptions)
     : base(Methods.UI_STATE)
 {
     this.uiState = uiState;
     this.uiText = uiText;
     this.uiDirection = uiDirection;
     this.inputOptions = inputOptions;
 }
 /// <summary>
 /// Used to get a handler for an InputOption that may be sent during a UI Event
 /// </summary>
 /// <param name="io"></param>
 /// <returns></returns>
 public EventHandler getHandler(InputOption io)
 {
     return new EventHandler(delegate (object sender, EventArgs args)
     {
         cloverConnector.InvokeInputOption(io);
     });
 }
 public void ExecuteInputOption(InputOption inputOption)
 {
     if (Device != null)
     {
         Device.doKeyPress(inputOption.keyPress);
     }
 }