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 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
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 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 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
|