API reference
API reference
Select your platform
No SDKs available
No versions available

WitMessageVRequest Class

Meta::WitAi::Requests::WitMessageVRequest extends Meta.WitAi.Requests.WitVRequest.

Overview

Public Member Functions

WitMessageVRequest
( IWitRequestConfiguration configuration,
string requestId,
RequestProgressDelegate onDownloadProgress,
RequestFirstResponseDelegate onFirstResponse,
RequestCompleteDelegate< string > onPartial )
Constructor for wit based message VRequests
bool
MessageRequest
( string text,
Dictionary< string, string > queryParams,
RequestCompleteDelegate< string > onComplete,
RequestCompleteDelegate< string > onPartial )
Voice message request
bool
MessageRequest
( string endpoint,
bool post,
string text,
Dictionary< string, string > queryParams,
RequestCompleteDelegate< string > onComplete,
RequestCompleteDelegate< string > onPartial )
Voice message request

Details

Member Functions

Meta.WitAi.Requests.WitMessageVRequest.WitMessageVRequest
( IWitRequestConfiguration configuration,
string requestId,
RequestProgressDelegate onDownloadProgress,
RequestFirstResponseDelegate onFirstResponse,
RequestCompleteDelegate< string > onPartial )
Constructor for wit based message VRequests
Parameters
configuration
The configuration interface to be used
requestId
A unique identifier that can be used to track the request
onDownloadProgress
The callback for progress related to downloading
onFirstResponse
The callback for the first response of data from a request
bool Meta.WitAi.Requests.WitMessageVRequest.MessageRequest
( string text,
Dictionary< string, string > queryParams,
RequestCompleteDelegate< string > onComplete,
RequestCompleteDelegate< string > onPartial )
Voice message request
Parameters
text
Text to be sent to message endpoint
queryParams
Parameters to be sent to the endpoint
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
bool Meta.WitAi.Requests.WitMessageVRequest.MessageRequest
( string endpoint,
bool post,
string text,
Dictionary< string, string > queryParams,
RequestCompleteDelegate< string > onComplete,
RequestCompleteDelegate< string > onPartial )
Voice message request
Parameters
endpoint
Endpoint to be used for possible overrides
post
Will perform a POST if true, will perform a GET otherwise
text
Text to be sent to message endpoint
queryParams
Parameters to be sent to the endpoint
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Did you find this page helpful?
Thumbs up icon
Thumbs down icon