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

VoiceServiceMockRequest Class

A request to be used with VoiceService.WrapRequest method for custom application of response data
Meta::WitAi::Requests::VoiceServiceMockRequest extends Meta.WitAi.Requests.VoiceServiceRequest.

Overview

Object Data

override bool

Public Member Functions

void
SetRawResponse
( string jsonText,
bool final )
Preferred method for setting raw response data and decoding it locally
void
SetTranscription
( string newTranscription,
bool full )
If additional transcription callbacks are required, handle them with this method
void
SetResponseData
( WitResponseNode responseData,
bool final )
If additional decoded partial responses are required this method will handle their application.
void
Fail
( string error )
Force error handling on a request with status code defaulted to default
void
Fail
( int statusCode,
string error )
Force error handling on a request

Object Data

override bool
override void
override void
override void
override void

Details

Object Data

override bool Meta.WitAi.Requests.VoiceServiceMockRequest.DecodeRawResponses
No description available.

Member Functions

Meta.WitAi.Requests.VoiceServiceMockRequest.VoiceServiceMockRequest
( NLPRequestInputType newInputType,
WitRequestOptions newOptions,
No description available.
void Meta.WitAi.Requests.VoiceServiceMockRequest.SetRawResponse
( string jsonText,
bool final )
Preferred method for setting raw response data and decoding it locally
Parameters
jsonText
The raw json text to be decoded
final
Whether this is the final text chunk or not
void Meta.WitAi.Requests.VoiceServiceMockRequest.SetTranscription
( string newTranscription,
bool full )
If additional transcription callbacks are required, handle them with this method
Parameters
newTranscription
The new transcription to be used
full
Whether this is a full transcription or not
void Meta.WitAi.Requests.VoiceServiceMockRequest.SetResponseData
( WitResponseNode responseData,
bool final )
If additional decoded partial responses are required this method will handle their application.
Parameters
responseData
The decoded response data
final
Whether this is the final response or not
void Meta.WitAi.Requests.VoiceServiceMockRequest.Fail
( string error )
Force error handling on a request with status code defaulted to default
Parameters
error
The error to be returned
void Meta.WitAi.Requests.VoiceServiceMockRequest.Fail
( int statusCode,
string error )
Force error handling on a request
Parameters
statusCode
The specified status code
error
The error to be returned

Object Data

override bool Meta.WitAi.Requests.VoiceServiceMockRequest.HasSentAudio ( )
No description available.
override void Meta.WitAi.Requests.VoiceServiceMockRequest.HandleAudioActivation ( )
No description available.
override void Meta.WitAi.Requests.VoiceServiceMockRequest.HandleAudioDeactivation ( )
No description available.
override void Meta.WitAi.Requests.VoiceServiceMockRequest.HandleSend ( )
No description available.
override void Meta.WitAi.Requests.VoiceServiceMockRequest.HandleCancel ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon