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

WitSyncVRequest Class

Meta::WitAi::Requests::WitSyncVRequest extends Meta.WitAi.Requests.WitVRequest.
Meta::WitAi::Requests::WitSyncVRequest extends Meta.WitAi.Requests.IWitSyncVRequest.

Overview

Public Member Functions

WitSyncVRequest
( IWitRequestConfiguration configuration,
RequestProgressDelegate onDownloadProgress,
RequestFirstResponseDelegate onFirstResponse )
Constructor for wit based editor data sync VRequests
bool
RequestAddIntent
( WitIntentInfo intentInfo,
RequestCompleteDelegate< WitIntentInfo > onComplete )
Submits an intent to be added to the current wit app
bool
RequestAddEntity
( WitEntityInfo entityInfo,
RequestCompleteDelegate< WitEntityInfo > onComplete )
Submits an entity to be added to the current wit app
bool
RequestAddEntityKeyword
( string entityId,
WitEntityKeywordInfo keywordInfo,
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,
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,
RequestCompleteDelegate< WitTraitInfo > onComplete )
Submits a trait to be added to the current wit app
bool
RequestAddTraitValue
( string traitId,
string traitValue,
RequestCompleteDelegate< WitTraitInfo > onComplete )
Submits a trait value to be added to the current wit app
bool
RequestImportData
( string manifestData,
RequestCompleteDelegate< WitResponseData > onComplete )
Import app data from generated manifest JSON

Details

Member Functions

Meta.WitAi.Requests.WitSyncVRequest.WitSyncVRequest
( IWitRequestConfiguration configuration,
RequestProgressDelegate onDownloadProgress,
RequestFirstResponseDelegate onFirstResponse )
Constructor for wit based editor data sync VRequests
Parameters
configuration
The configuration interface to be used
onDownloadProgress
The callback for progress related to downloading
onFirstResponse
The callback for the first response of data from a request
bool Meta.WitAi.Requests.WitSyncVRequest.RequestAddIntent
( WitIntentInfo intentInfo,
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.WitSyncVRequest.RequestAddEntity
( WitEntityInfo entityInfo,
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.WitSyncVRequest.RequestAddEntityKeyword
( string entityId,
WitEntityKeywordInfo keywordInfo,
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.WitSyncVRequest.RequestAddSynonym
( string entityId,
string keyword,
string synonym,
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.WitSyncVRequest.RequestAddTrait
( WitTraitInfo traitInfo,
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.WitSyncVRequest.RequestAddTraitValue
( string traitId,
string traitValue,
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
bool Meta.WitAi.Requests.WitSyncVRequest.RequestImportData
( string manifestData,
RequestCompleteDelegate< WitResponseData > onComplete )
Import app data from generated manifest JSON
Parameters
configappName
The name of the app as it is defined in wit.ai
manifestData
The serialized manifest to import from
Returns
Built request object
Did you find this page helpful?
Thumbs up icon
Thumbs down icon