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 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 > |
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
|