API reference

WitSyncVRequest Class

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

Constructors

WitSyncVRequest ( configuration )
Constructor for wit based editor data sync VRequests
Signature
Meta.WitAi.Requests.WitSyncVRequest.WitSyncVRequest(IWitRequestConfiguration configuration)
Parameters
configuration: IWitRequestConfiguration  The configuration interface to be used

Methods

RequestAddEntity ( entityInfo )
Submits an entity to be added to the current wit app
Signature
async Task<VRequestResponse<WitEntityInfo> > Meta.WitAi.Requests.WitSyncVRequest.RequestAddEntity(WitEntityInfo entityInfo)
Parameters
entityInfo: WitEntityInfo  The entity info to be submitted
Returns
async Task< VRequestResponse< WitEntityInfo > >  Returns an entity with unique id if successful
RequestAddEntityKeyword ( entityId , keywordInfo )
Submits a keyword to be added to an entity on the current wit app
Signature
async Task<VRequestResponse<WitEntityInfo> > Meta.WitAi.Requests.WitSyncVRequest.RequestAddEntityKeyword(string entityId, WitEntityKeywordInfo keywordInfo)
Parameters
entityId: string  The entity this keyword should be added to
keywordInfo: WitEntityKeywordInfo  The keyword and synonyms submitted
Returns
async Task< VRequestResponse< WitEntityInfo > >  Returns updated entity if successful
RequestAddEntitySynonym ( entityId , keyword , synonym )
Submits a synonym to be added to a keyword on the specified entity on the current wit app
Signature
async Task<VRequestResponse<WitEntityInfo> > Meta.WitAi.Requests.WitSyncVRequest.RequestAddEntitySynonym(string entityId, string keyword, string synonym)
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
Returns
async Task< VRequestResponse< WitEntityInfo > >  Returns updated entity if successful
RequestAddIntent ( intentInfo )
Submits an intent to be added to the current wit app
Signature
async Task<VRequestResponse<WitIntentInfo> > Meta.WitAi.Requests.WitSyncVRequest.RequestAddIntent(WitIntentInfo intentInfo)
Parameters
intentInfo: WitIntentInfo  The intent data to be submitted
Returns
async Task< VRequestResponse< WitIntentInfo > >  Returns an intent with unique id if successful
RequestAddTrait ( traitInfo )
Submits a trait to be added to the current wit app
Signature
async Task<VRequestResponse<WitTraitInfo> > Meta.WitAi.Requests.WitSyncVRequest.RequestAddTrait(WitTraitInfo traitInfo)
Parameters
traitInfo: WitTraitInfo  The trait data to be submitted
Returns
async Task< VRequestResponse< WitTraitInfo > >  Returns a trait with unique id if successful
RequestAddTraitValue ( traitId , traitValue )
Submits a trait value to be added to the current wit app
Signature
async Task<VRequestResponse<WitTraitInfo> > Meta.WitAi.Requests.WitSyncVRequest.RequestAddTraitValue(string traitId, string traitValue)
Parameters
traitId: string  The trait id to be submitted
traitValue: string  The trait value to be submitted
Returns
async Task< VRequestResponse< WitTraitInfo > >  Returns updated trait if successful
RequestImportData ( manifestData )
Import app data from generated manifest JSON
Signature
async Task<VRequestResponse<WitResponseNode> > Meta.WitAi.Requests.WitSyncVRequest.RequestImportData(string manifestData)
Parameters
manifestData: string  The serialized manifest to import from
Returns
async Task< VRequestResponse< WitResponseNode > >  Built request object