VoiceServiceRequest
(
newInputType
, newOptions
, newEvents
)
|
Constructor for Voice Service requests
Signature
Meta.WitAi.Requests.VoiceServiceRequest.VoiceServiceRequest(NLPRequestInputType newInputType, WitRequestOptions newOptions, VoiceServiceRequestEvents newEvents) Parameters |
ResponseDecoder
: override INLPRequestResponseDecoder< WitResponseNode > |
Signature
override INLPRequestResponseDecoder<WitResponseNode> Meta.WitAi.Requests.VoiceServiceRequest.ResponseDecoder |
IsLocalRequest
: bool |
Check if request is local
Signature
bool Meta.WitAi.Requests.VoiceServiceRequest.IsLocalRequest |
StatusCode
: int |
The status code returned from the last request
Signature
int Meta.WitAi.Requests.VoiceServiceRequest.StatusCode |
ApplyResponseData
(
responseData
, isFinal
)
|
Signature
override void Meta.WitAi.Requests.VoiceServiceRequest.ApplyResponseData(WitResponseNode responseData, bool isFinal) Parameters responseData: WitResponseNodeisFinal: boolReturns override void |
OnSimulateResponse
()
|
Signature
override bool Meta.WitAi.Requests.VoiceServiceRequest.OnSimulateResponse() Returns override bool |
RaiseEvent
(
eventCallback
)
|
Performs an event callback with this request as the parameter
Signature
override void Meta.WitAi.Requests.VoiceServiceRequest.RaiseEvent(VoiceServiceRequestEvent eventCallback) Parameters Returns override void |
SetEventListeners
(
newEvents
, add
)
|
Subscribes or unsubscribes all provided VoiceServiceRequestEvents from this request's VoiceServiceRequestEvents callbacks.
Signature
override void Meta.WitAi.Requests.VoiceServiceRequest.SetEventListeners(VoiceServiceRequestEvents newEvents, bool add) Parameters add: bool
Whether to add listeners or remove listeners
Returns override void |
ShouldIgnoreError
(
errorStatusCode
, errorMessage
)
|
Check for ignored error status codes & messages.
Signature
override bool Meta.WitAi.Requests.VoiceServiceRequest.ShouldIgnoreError(int errorStatusCode, string errorMessage) Parameters errorStatusCode: int
The error status code if applicable
errorMessage: string
The error to be returned
Returns override bool |
SimulateError
(
errorType
)
|
Simulates a specific error
Signature
virtual void Meta.WitAi.Requests.VoiceServiceRequest.SimulateError(VoiceErrorSimulationType errorType) Parameters errorType: VoiceErrorSimulationTypeReturns void |