API reference

WitSyncVRequest Class

Extends Meta.WitAi.Requests.WitVRequest, Meta.WitAi.Requests.IWitSyncVRequest

Constructors

WitSyncVRequest ( configuration , onDownloadProgress , onFirstResponse )
Constructor for wit based editor data sync VRequests
Signature
Meta.WitAi.Requests.WitSyncVRequest.WitSyncVRequest(IWitRequestConfiguration configuration, RequestProgressDelegate onDownloadProgress=null, RequestFirstResponseDelegate onFirstResponse=null)
Parameters
configuration: IWitRequestConfiguration  The configuration interface to be used
onDownloadProgress: RequestProgressDelegate  The callback for progress related to downloading
onFirstResponse: RequestFirstResponseDelegate  The callback for the first response of data from a request

Methods

RequestAddEntity ( entityInfo , onComplete )
Submits an entity to be added to the current wit app
Signature
bool Meta.WitAi.Requests.WitSyncVRequest.RequestAddEntity(WitEntityInfo entityInfo, RequestCompleteDelegate< WitEntityInfo > onComplete)
Parameters
entityInfo: WitEntityInfo  The entity info to be submitted
onComplete: 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.WitSyncVRequest.RequestAddEntityKeyword(string entityId, WitEntityKeywordInfo keywordInfo, RequestCompleteDelegate< WitEntityInfo > onComplete)
Parameters
entityId: string  The entity this keyword should be added to
keywordInfo: WitEntityKeywordInfo  The keyword and synonyms submitted
onComplete: 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.WitSyncVRequest.RequestAddIntent(WitIntentInfo intentInfo, RequestCompleteDelegate< WitIntentInfo > onComplete)
Parameters
intentInfo: WitIntentInfo  The intent data to be submitted
onComplete: 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.WitSyncVRequest.RequestAddSynonym(string entityId, string keyword, string synonym, 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: 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.WitSyncVRequest.RequestAddTrait(WitTraitInfo traitInfo, RequestCompleteDelegate< WitTraitInfo > onComplete)
Parameters
traitInfo: WitTraitInfo  The trait data to be submitted
onComplete: 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.WitSyncVRequest.RequestAddTraitValue(string traitId, string traitValue, RequestCompleteDelegate< WitTraitInfo > onComplete)
Parameters
traitId: string  The trait id to be submitted
traitValue: string  The trait value to be submitted
onComplete: RequestCompleteDelegate< WitTraitInfo >  On completion callback that returns updated trait if successful
Returns
bool  False if fails to make request
RequestImportData ( manifestData , onComplete )
Import app data from generated manifest JSON
Signature
bool Meta.WitAi.Requests.WitSyncVRequest.RequestImportData(string manifestData, RequestCompleteDelegate< WitResponseData > onComplete)
Parameters
manifestData: string  The serialized manifest to import from
onComplete: RequestCompleteDelegate< WitResponseData >
Returns
bool  Built request object