API reference

WitMessageVRequest Class

Constructors

WitMessageVRequest ( configuration , requestId , onDownloadProgress , onFirstResponse , onPartial )
Constructor for wit based message VRequests
Signature
Meta.WitAi.Requests.WitMessageVRequest.WitMessageVRequest(IWitRequestConfiguration configuration, string requestId, RequestProgressDelegate onDownloadProgress=null, RequestFirstResponseDelegate onFirstResponse=null, RequestCompleteDelegate< string > onPartial=null)
Parameters
configuration: IWitRequestConfiguration  The configuration interface to be used
requestId: string  A unique identifier that can be used to track the request
onDownloadProgress: RequestProgressDelegate  The callback for progress related to downloading
onFirstResponse: RequestFirstResponseDelegate  The callback for the first response of data from a request
onPartial: RequestCompleteDelegate< string >

Methods

MessageRequest ( text , queryParams , onComplete , onPartial )
Voice message request
Signature
bool Meta.WitAi.Requests.WitMessageVRequest.MessageRequest(string text, Dictionary< string, string > queryParams, RequestCompleteDelegate< string > onComplete, RequestCompleteDelegate< string > onPartial=null)
Parameters
text: string  Text to be sent to message endpoint
queryParams: Dictionary< string, string >  Parameters to be sent to the endpoint
onComplete: RequestCompleteDelegate< string >  The callback delegate on request completion
onPartial: RequestCompleteDelegate< string >
Returns
bool  False if the request cannot be performed
MessageRequest ( endpoint , post , text , queryParams , onComplete , onPartial )
Voice message request
Signature
bool Meta.WitAi.Requests.WitMessageVRequest.MessageRequest(string endpoint, bool post, string text, Dictionary< string, string > queryParams, RequestCompleteDelegate< string > onComplete, RequestCompleteDelegate< string > onPartial=null)
Parameters
endpoint: string  Endpoint to be used for possible overrides
post: bool  Will perform a POST if true, will perform a GET otherwise
text: string  Text to be sent to message endpoint
queryParams: Dictionary< string, string >  Parameters to be sent to the endpoint
onComplete: RequestCompleteDelegate< string >  The callback delegate on request completion
onPartial: RequestCompleteDelegate< string >
Returns
bool  False if the request cannot be performed