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

IWitSyncVRequest Interface

Meta::WitAi::Requests::IWitSyncVRequest extends Meta.WitAi.Requests.IWitVRequest.

Overview

Public Member Functions

bool
RequestAddIntent
( WitIntentInfo intentInfo,
VRequest.RequestCompleteDelegate< WitIntentInfo > onComplete )
Submits an intent to be added to the current wit app
bool
RequestAddEntity
( WitEntityInfo entityInfo,
VRequest.RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits an entity to be added to the current wit app
bool
RequestAddEntityKeyword
( string entityId,
WitEntityKeywordInfo keywordInfo,
VRequest.RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits a keyword to be added to an entity on the current wit app
bool
RequestAddSynonym
( string entityId,
string keyword,
string synonym,
VRequest.RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits a synonym to be added to a keyword on the specified entity on the current wit app
bool
RequestAddTrait
( WitTraitInfo traitInfo,
VRequest.RequestCompleteDelegate< WitTraitInfo > onComplete )
Submits a trait to be added to the current wit app
bool
RequestAddTraitValue
( string traitId,
string traitValue,
VRequest.RequestCompleteDelegate< WitTraitInfo > onComplete )
Submits a trait value to be added to the current wit app

Details

Member Functions

bool Meta.WitAi.Requests.IWitSyncVRequest.RequestAddIntent
( WitIntentInfo intentInfo,
VRequest.RequestCompleteDelegate< WitIntentInfo > onComplete )
Submits an intent to be added to the current wit app
Parameters
intentInfo
The intent data to be submitted
onComplete
On completion that returns an intent with unique id if successful
Returns
False if fails to make request
bool Meta.WitAi.Requests.IWitSyncVRequest.RequestAddEntity
( WitEntityInfo entityInfo,
VRequest.RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits an entity to be added to the current wit app
Parameters
entityInfo
The entity info to be submitted
onComplete
On completion that returns an entity with unique id if successful
Returns
False if fails to make request
bool Meta.WitAi.Requests.IWitSyncVRequest.RequestAddEntityKeyword
( string entityId,
WitEntityKeywordInfo keywordInfo,
VRequest.RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits a keyword to be added to an entity on the current wit app
Parameters
entityId
The entity this keyword should be added to
keywordInfo
The keyword and synonyms submitted
onComplete
On completion that returns updated entity if successful
Returns
False if fails to make request
bool Meta.WitAi.Requests.IWitSyncVRequest.RequestAddSynonym
( string entityId,
string keyword,
string synonym,
VRequest.RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits a synonym to be added to a keyword on the specified entity on the current wit app
Parameters
entityId
The entity that holds the keyword
keyword
The keyword we're adding the synonym to
synonym
The synonym we're adding
onComplete
On completion that returns updated entity if successful
Returns
False if fails to make request
bool Meta.WitAi.Requests.IWitSyncVRequest.RequestAddTrait
( WitTraitInfo traitInfo,
VRequest.RequestCompleteDelegate< WitTraitInfo > onComplete )
Submits a trait to be added to the current wit app
Parameters
traitInfo
The trait data to be submitted
onComplete
On completion that returns a trait with unique id if successful
Returns
False if fails to make request
bool Meta.WitAi.Requests.IWitSyncVRequest.RequestAddTraitValue
( string traitId,
string traitValue,
VRequest.RequestCompleteDelegate< WitTraitInfo > onComplete )
Submits a trait value to be added to the current wit app
Parameters
traitId
The trait id to be submitted
traitValue
The trait value to be submitted
onComplete
On completion callback that returns updated trait if successful
Returns
False if fails to make request
Did you find this page helpful?
Thumbs up icon
Thumbs down icon