![]() |
Helper Class Reference
1.4
HomeGenie - Automation Programs API
|
Program Helper Base class.
Class instance accessor: Program
More...
Public Member Functions | |
ProgramHelperBase | Say (string sentence, string locale=null, bool goAsync=false) |
Playbacks a synthesized voice message from speaker. More... | |
ProgramHelperBase | Play (string waveUrl) |
Playbacks a wave file. More... | |
Thread | RunAsyncTask (Utility.AsyncFunction functionBlock) |
Executes a function asynchronously. More... | |
void | Run (string programId, string options=null) |
Executes the specified Automation Program. More... | |
ProgramHelperBase | WaitFor (string programId) |
Waits for the given program to complete execution. More... | |
ProgramHelper | WithAddress (int programAddress) |
Returns a reference to the ProgramHelper of a program. More... | |
ProgramHelper | WithName (string programName) |
Returns a reference to the ProgramHelper of a program. More... | |
Properties | |
NLog.Logger | Log [get] |
Gets the logger object. More... | |
Program Helper Base class.
Class instance accessor: Program
ProgramHelperBase Say | ( | string | sentence, |
string | locale = null , |
||
bool | goAsync = false |
||
) |
Playbacks a synthesized voice message from speaker.
sentence | Message to output. |
locale | Language locale string (eg. "en-US", "it-IT", "en-GB", "nl-NL",...). (optional) |
goAsync | If true, the command will be executed asynchronously. (optional, default = false) |
Example:
ProgramHelperBase Play | ( | string | waveUrl | ) |
Playbacks a wave file.
waveUrl | URL of the audio wave file to play. |
Thread RunAsyncTask | ( | Utility.AsyncFunction | functionBlock | ) |
Executes a function asynchronously.
functionBlock | Function name or inline delegate. |
void Run | ( | string | programId, |
string | options = null |
||
) |
Executes the specified Automation Program.
programId | Program name or ID. |
options | Program options. (optional) |
ProgramHelperBase WaitFor | ( | string | programId | ) |
Waits for the given program to complete execution.
programId | Program address or name. |
ProgramHelper WithAddress | ( | int | programAddress | ) |
Returns a reference to the ProgramHelper of a program.
programAddress | Program address (id). |
ProgramHelper WithName | ( | string | programName | ) |
Returns a reference to the ProgramHelper of a program.
programName | Program name. |
|
get |
Gets the logger object.
The logger object.