//! Execute this gesture, the provided callback should be invoked when the gesture is complete. public bool Execute(OnGestureDone a_Callback, IDictionary a_Params) { m_Callback = a_Callback; bool bError = false; string text = a_Params["text"] as string; string gender = a_Params["gender"] as string; string language = a_Params["language"] as string; // TODO: implement gender & language support if (string.IsNullOrEmpty(text) || !m_TextOutput.SendData(new TextToSpeechData(text))) { bError = true; } if (bError) { if (m_Callback != null) { m_Callback(this, true); } m_Callback = null; } return(true); }
//! Execute this gesture, the provided callback should be invoked when the gesture is complete. public bool Execute(OnGestureDone a_Callback, IDictionary a_Params) { bool bError = false; string status = a_Params["status"] as string; m_Status.SendData(new StatusData(status)); if (a_Callback != null) { a_Callback(this, bError); } return(true); }
//! Execute this gesture, the provided callback should be invoked when the gesture is complete. public bool Execute(OnGestureDone a_Callback, IDictionary a_Params) { bool bError = false; string type = a_Params["display"] as string; string data = a_Params["data"] as string; if (! m_DocumentOutput.SendData( new DocumentModel( type, data ) ) ) { Log.Error( "SelfDisplayGesture", "Failed to send data." ); bError = true; } if (a_Callback != null) a_Callback(this, bError ); return true; }