wit-ai / wit-ios

Wit.ai iOS client
Other
222 stars 71 forks source link

Added (beta) support for sending requests with context #18

Closed mm closed 10 years ago

mm commented 10 years ago

Added the ability to pass in (one) state in the context field, as described in the state docs. While this method can still be used to toggle capturing voice intent:

[[Wit sharedInstance] toggleCaptureVoiceIntent:NULL];

This method can also be used, to add the optional state in:

[[Wit sharedInstance] toggleCaptureVoiceIntent:NULL withContext:@"state_name"];
blandinw commented 10 years ago

Thanks @mm! I'm merging that, just a few comments:

mm commented 10 years ago

No problem! Yeah, at least one of those methods has a giant chain of em in it :laughing: Want me to apply those changes, or are you planning on it?

blandinw commented 10 years ago

I'm planning on it, thanks!