We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
A consumer may add additional properties to a command, like:
class MyCommand : Command { /* ... */ } var myCmd = new MyCommand { Id = "FindYellowBox", VoiceTriggers = new[] { "Find yellow box" }, Object = "box", Color = "yellow", };
At the moment in order to get this info back, the consumer needs to cast the command to its type:
covox.Recognized += (Command command, _) => { var myCmd = (MyCommand)command; // ... };
Proposal: Allow to create a typed instance of the engine, and accept/return only typed commands:
var covox = new CovoxEngine<MyCommand>(config); var cmds = new[] { new MyCommand() }; covox.RegisterCommands(cmds); covox.Recognized += (MyCommand command, _) => { /* ... */ };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A consumer may add additional properties to a command, like:
At the moment in order to get this info back, the consumer needs to cast the command to its type:
Proposal:
Allow to create a typed instance of the engine, and accept/return only typed commands:
The text was updated successfully, but these errors were encountered: