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

WitResultUtilities Class

Overview

Data Fields

const string
const string
const string
const string
const string
const string
const string
const string
const string

Static Public Member Functions

static int
GetStatusCode
( this WitResponseNode witResponse )
Returns if any status code is returned
static string
GetError
( this WitResponseNode witResponse )
Returns if any errors are contained in the response
static string
GetTranscription
( this WitResponseNode witResponse )
Get the transcription from a wit response node
SafeGet
( this WitResponseNode witResponse,
string key )
Get whether this response is for transcriptions only
static string
GetRequestId
( this WitResponseNode witResponse )
Gets the unique request id if included in the response
static string
GetResponseType
( this WitResponseNode witResponse )
Gets the content of a witResponse's partial or final response whichever is present.
GetResponse
( this WitResponseNode witResponse )
Gets the content of a witResponse's partial or final response whichever is present.
GetFinalResponse
( this WitResponseNode witResponse )
Gets the content of a witResponse["response"] node.
GetPartialResponse
( this WitResponseNode witResponse )
Gets the content of a witResponse["partial_response"] node.
static bool
GetIsFinal
( this WitResponseNode witResponse )
Get whether this response is the final response returned from the service
static bool
GetIsNlpPartial
( this WitResponseNode witResponse )
Get whether this response is a 'final' nlp response
static bool
GetIsNlpFinal
( this WitResponseNode witResponse )
Get whether this response is a 'final' nlp response
static bool
Get whether this response is a 'final' transcription
static bool
Get whether this response is a 'final' transcription
static bool
GetHasTranscription
( this WitResponseNode witResponse )
Get whether this response contains a transcription that should be analyzed
AsWitEntity
( this WitResponseNode witResponse )
Converts wit response node into a wit entity
AsWitFloatEntity
( this WitResponseNode witResponse )
Converts wit response node into a float entity
AsWitIntEntity
( this WitResponseNode witResponse )
Converts wit response node into an int entity
static string
GetFirstEntityValue
( this WitResponseNode witResponse,
string name )
Gets the string value of the first entity
static string []
GetAllEntityValues
( this WitResponseNode witResponse,
string name )
Gets a collection of string value containing the selected value from each entity in the response.
GetFirstEntity
( this WitResponseNode witResponse,
string name )
Gets the first entity as a WitResponseNode
GetFirstWitEntity
( this WitResponseNode witResponse,
string name )
Gets the first entity with the given name as string data
GetFirstWitIntEntity
( this WitResponseNode witResponse,
string name )
Gets The first entity with the given name as int data
static int
GetFirstWitIntValue
( this WitResponseNode witResponse,
string name,
int defaultValue )
Gets The first entity with the given name as int data
GetFirstWitFloatEntity
( this WitResponseNode witResponse,
string name )
Gets the first entity with the given name as float data
static float
GetFirstWitFloatValue
( this WitResponseNode witResponse,
string name,
float defaultValue )
Gets The first entity with the given name as int data
static WitEntityData []
GetEntities
( this WitResponseNode witResponse,
string name )
Gets all entities in the given response
static int
EntityCount
( this WitResponseNode response )
Returns the total number of entities
GetFloatEntities
( this WitResponseNode witResponse,
string name )
Gets all float entity values in the given response with the specified entity name
GetIntEntities
( this WitResponseNode witResponse,
string name )
Gets all int entity values in the given response with the specified entity name
AsWitIntent
( this WitResponseNode witResponse )
Converts wit response node into wit intent data
static string
GetIntentName
( this WitResponseNode witResponse )
Gets the first intent's name
GetFirstIntent
( this WitResponseNode witResponse )
Gets the first intent node
GetFirstIntentData
( this WitResponseNode witResponse )
Gets the first set of intent data
static WitIntentData []
GetIntents
( this WitResponseNode witResponse )
Gets all intents in the given response
static string
GetPathValue
( this WitResponseNode response,
string path )
static void
SetString
( this WitResponseNode response,
string path,
string value )
static void
RemovePath
( this WitResponseNode response,
string path )
GetWitResponseReference
( string path )
static string
GetCodeFromPath
( string path )
static string
GetTraitValue
( this WitResponseNode witResponse,
string name )
Gets the string value of the first trait

Details

Fields

const string Meta.WitAi.WitResultUtilities.WIT_KEY_TRANSCRIPTION
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_KEY_INTENTS
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_KEY_ENTITIES
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_KEY_TRAITS
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_KEY_FINAL
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_PARTIAL_RESPONSE
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_RESPONSE
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_STATUS_CODE
No description available.
const string Meta.WitAi.WitResultUtilities.WIT_ERROR
No description available.

Static Member Functions

static int Meta.WitAi.WitResultUtilities.GetStatusCode
( this WitResponseNode witResponse )
Returns if any status code is returned
static string Meta.WitAi.WitResultUtilities.GetError
( this WitResponseNode witResponse )
Returns if any errors are contained in the response
static string Meta.WitAi.WitResultUtilities.GetTranscription
( this WitResponseNode witResponse )
Get the transcription from a wit response node
static WitResponseNode Meta.WitAi.WitResultUtilities.SafeGet
( this WitResponseNode witResponse,
string key )
Get whether this response is for transcriptions only
static string Meta.WitAi.WitResultUtilities.GetRequestId
( this WitResponseNode witResponse )
Gets the unique request id if included in the response
Parameters
witResponse
The response node class or null if none was found.
static string Meta.WitAi.WitResultUtilities.GetResponseType
( this WitResponseNode witResponse )
Gets the content of a witResponse's partial or final response whichever is present.
Parameters
witResponse
The response node class or null if none was found.
Returns
static WitResponseClass Meta.WitAi.WitResultUtilities.GetResponse
( this WitResponseNode witResponse )
Gets the content of a witResponse's partial or final response whichever is present.
Parameters
witResponse
The response node class or null if none was found.
Returns
static WitResponseClass Meta.WitAi.WitResultUtilities.GetFinalResponse
( this WitResponseNode witResponse )
Gets the content of a witResponse["response"] node.
Parameters
witResponse
The response node class or null if none was found.
static WitResponseClass Meta.WitAi.WitResultUtilities.GetPartialResponse
( this WitResponseNode witResponse )
Gets the content of a witResponse["partial_response"] node.
Parameters
witResponse
The response node class or null if none was found.
static bool Meta.WitAi.WitResultUtilities.GetIsFinal
( this WitResponseNode witResponse )
Get whether this response is the final response returned from the service
static bool Meta.WitAi.WitResultUtilities.GetIsNlpPartial
( this WitResponseNode witResponse )
Get whether this response is a 'final' nlp response
static bool Meta.WitAi.WitResultUtilities.GetIsNlpFinal
( this WitResponseNode witResponse )
Get whether this response is a 'final' nlp response
static bool Meta.WitAi.WitResultUtilities.GetIsTranscriptionPartial
( this WitResponseNode witResponse )
Get whether this response is a 'final' transcription
static bool Meta.WitAi.WitResultUtilities.GetIsTranscriptionFinal
( this WitResponseNode witResponse )
Get whether this response is a 'final' transcription
static bool Meta.WitAi.WitResultUtilities.GetHasTranscription
( this WitResponseNode witResponse )
Get whether this response contains a transcription that should be analyzed
static WitEntityData Meta.WitAi.WitResultUtilities.AsWitEntity
( this WitResponseNode witResponse )
Converts wit response node into a wit entity
static WitEntityFloatData Meta.WitAi.WitResultUtilities.AsWitFloatEntity
( this WitResponseNode witResponse )
Converts wit response node into a float entity
static WitEntityIntData Meta.WitAi.WitResultUtilities.AsWitIntEntity
( this WitResponseNode witResponse )
Converts wit response node into an int entity
static string Meta.WitAi.WitResultUtilities.GetFirstEntityValue
( this WitResponseNode witResponse,
string name )
Gets the string value of the first entity
Parameters
witResponsename
Returns
static string [] Meta.WitAi.WitResultUtilities.GetAllEntityValues
( this WitResponseNode witResponse,
string name )
Gets a collection of string value containing the selected value from each entity in the response.
Parameters
witResponsename
Returns
static WitResponseNode Meta.WitAi.WitResultUtilities.GetFirstEntity
( this WitResponseNode witResponse,
string name )
Gets the first entity as a WitResponseNode
Parameters
witResponsename
Returns
static WitEntityData Meta.WitAi.WitResultUtilities.GetFirstWitEntity
( this WitResponseNode witResponse,
string name )
Gets the first entity with the given name as string data
Parameters
witResponsename
The entity name typically something like name:name
Returns
static WitEntityIntData Meta.WitAi.WitResultUtilities.GetFirstWitIntEntity
( this WitResponseNode witResponse,
string name )
Gets The first entity with the given name as int data
Parameters
witResponsename
The entity name typically something like name:name
Returns
static int Meta.WitAi.WitResultUtilities.GetFirstWitIntValue
( this WitResponseNode witResponse,
string name,
int defaultValue )
Gets The first entity with the given name as int data
Parameters
witResponsename
The entity name typically something like name:name
Returns
static WitEntityFloatData Meta.WitAi.WitResultUtilities.GetFirstWitFloatEntity
( this WitResponseNode witResponse,
string name )
Gets the first entity with the given name as float data
Parameters
witResponsename
The entity name typically something like name:name
Returns
static float Meta.WitAi.WitResultUtilities.GetFirstWitFloatValue
( this WitResponseNode witResponse,
string name,
float defaultValue )
Gets The first entity with the given name as int data
Parameters
witResponsename
The entity name typically something like name:name
Returns
static WitEntityData [] Meta.WitAi.WitResultUtilities.GetEntities
( this WitResponseNode witResponse,
string name )
Gets all entities in the given response
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
Returns
static int Meta.WitAi.WitResultUtilities.EntityCount
( this WitResponseNode response )
Returns the total number of entities
Parameters
response
Returns
static WitEntityFloatData [] Meta.WitAi.WitResultUtilities.GetFloatEntities
( this WitResponseNode witResponse,
string name )
Gets all float entity values in the given response with the specified entity name
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
name
The entity name typically something like name:name
Returns
static WitEntityIntData [] Meta.WitAi.WitResultUtilities.GetIntEntities
( this WitResponseNode witResponse,
string name )
Gets all int entity values in the given response with the specified entity name
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
name
The entity name typically something like name:name
Returns
static WitIntentData Meta.WitAi.WitResultUtilities.AsWitIntent
( this WitResponseNode witResponse )
Converts wit response node into wit intent data
static string Meta.WitAi.WitResultUtilities.GetIntentName
( this WitResponseNode witResponse )
Gets the first intent's name
Parameters
witResponse
Returns
static WitResponseNode Meta.WitAi.WitResultUtilities.GetFirstIntent
( this WitResponseNode witResponse )
Gets the first intent node
Parameters
witResponse
Returns
static WitIntentData Meta.WitAi.WitResultUtilities.GetFirstIntentData
( this WitResponseNode witResponse )
Gets the first set of intent data
Parameters
witResponse
Returns
WitIntentData or null if no intents are found
static WitIntentData [] Meta.WitAi.WitResultUtilities.GetIntents
( this WitResponseNode witResponse )
Gets all intents in the given response
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
Returns
static string Meta.WitAi.WitResultUtilities.GetPathValue
( this WitResponseNode response,
string path )
No description available.
static void Meta.WitAi.WitResultUtilities.SetString
( this WitResponseNode response,
string path,
string value )
No description available.
static void Meta.WitAi.WitResultUtilities.RemovePath
( this WitResponseNode response,
string path )
No description available.
static WitResponseReference Meta.WitAi.WitResultUtilities.GetWitResponseReference
( string path )
No description available.
static string Meta.WitAi.WitResultUtilities.GetCodeFromPath
( string path )
No description available.
static string Meta.WitAi.WitResultUtilities.GetTraitValue
( this WitResponseNode witResponse,
string name )
Gets the string value of the first trait
Parameters
witResponsename
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon