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

Protected Fields

override bool DecodeRawResponses[Get]

Member Functions

VoiceServiceMockRequest
( NLPRequestInputType newInputType,
WitRequestOptions newOptions,
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
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
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
Force error handling on a request with status code defaulted to default
Parameters
error
The error to be returned
Force error handling on a request
Parameters
statusCode
The specified status code
error
The error to be returned

Protected Functions

override bool HasSentAudio ( )
override void HandleAudioActivation ( )
override void HandleAudioDeactivation ( )
override void HandleSend ( )
override void HandleCancel ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon