API reference

IWitSyncVRequest Interface

Extends Meta.WitAi.Requests.IWitVRequest

Methods

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