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 onDownloadProgress: RequestProgressDelegate
The callback for progress related to downloading
onFirstResponse: RequestFirstResponseDelegate
The callback for the first response of data from a request
|
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 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
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 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 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
|