@@ -153,15 +153,15 @@ public AssistantService(string versionDate, Credentials credentials) : base(vers
153
153
/// <param name="customData">A Dictionary<string, object> of data that will be passed to the callback. The raw
154
154
/// json output from the REST call will be passed in this object as the value of the 'json'
155
155
/// key.</string></param>
156
- /// <returns><see cref="Dictionary<string, JObject> " />Dictionary<string, JObject> </returns>
157
- public bool Message ( Callback < Dictionary < string , JObject > > callback , string workspaceId , Dictionary < string , object > customData = null , Dictionary < string , JObject > input = null , bool ? alternateIntents = null , Dictionary < string , JObject > context = null , List < Dictionary < string , JObject > > entities = null , List < Dictionary < string , JObject > > intents = null , Dictionary < string , JObject > output = null , bool ? nodesVisitedDetails = null )
156
+ /// <returns><see cref="JObject" />JObject</returns>
157
+ public bool Message ( Callback < JObject > callback , string workspaceId , Dictionary < string , object > customData = null , JObject input = null , bool ? alternateIntents = null , JObject context = null , List < JObject > entities = null , List < JObject > intents = null , JObject output = null , bool ? nodesVisitedDetails = null )
158
158
{
159
159
if ( callback == null )
160
160
throw new ArgumentNullException ( "`callback` is required for `Message`" ) ;
161
161
if ( string . IsNullOrEmpty ( workspaceId ) )
162
162
throw new ArgumentNullException ( "`workspaceId` is required for `Message`" ) ;
163
163
164
- RequestObject < Dictionary < string , JObject > > req = new RequestObject < Dictionary < string , JObject > >
164
+ RequestObject < JObject > req = new RequestObject < JObject >
165
165
{
166
166
Callback = callback ,
167
167
HttpMethod = UnityWebRequest . kHttpVerbPOST ,
@@ -218,8 +218,8 @@ public bool Message(Callback<Dictionary<string, JObject>> callback, string works
218
218
219
219
private void OnMessageResponse ( RESTConnector . Request req , RESTConnector . Response resp )
220
220
{
221
- DetailedResponse < Dictionary < string , JObject > > response = new DetailedResponse < Dictionary < string , JObject > > ( ) ;
222
- Dictionary < string , object > customData = ( ( RequestObject < Dictionary < string , JObject > > ) req ) . CustomData ;
221
+ DetailedResponse < JObject > response = new DetailedResponse < JObject > ( ) ;
222
+ Dictionary < string , object > customData = ( ( RequestObject < JObject > ) req ) . CustomData ;
223
223
foreach ( KeyValuePair < string , string > kvp in resp . Headers )
224
224
{
225
225
response . Headers . Add ( kvp . Key , kvp . Value ) ;
@@ -229,7 +229,7 @@ private void OnMessageResponse(RESTConnector.Request req, RESTConnector.Response
229
229
try
230
230
{
231
231
string json = Encoding . UTF8 . GetString ( resp . Data ) ;
232
- response . Result = JsonConvert . DeserializeObject < Dictionary < string , JObject > > ( json ) ;
232
+ response . Result = JsonConvert . DeserializeObject < JObject > ( json ) ;
233
233
customData . Add ( "json" , json ) ;
234
234
}
235
235
catch ( Exception e )
@@ -238,8 +238,8 @@ private void OnMessageResponse(RESTConnector.Request req, RESTConnector.Response
238
238
resp . Success = false ;
239
239
}
240
240
241
- if ( ( ( RequestObject < Dictionary < string , JObject > > ) req ) . Callback != null )
242
- ( ( RequestObject < Dictionary < string , JObject > > ) req ) . Callback ( response , resp . Error , customData ) ;
241
+ if ( ( ( RequestObject < JObject > ) req ) . Callback != null )
242
+ ( ( RequestObject < JObject > ) req ) . Callback ( response , resp . Error , customData ) ;
243
243
}
244
244
/// <summary>
245
245
/// Create workspace.
@@ -3895,7 +3895,7 @@ private void OnUpdateSynonymResponse(RESTConnector.Request req, RESTConnector.Re
3895
3895
/// json output from the REST call will be passed in this object as the value of the 'json'
3896
3896
/// key.</string></param>
3897
3897
/// <returns><see cref="DialogNode" />DialogNode</returns>
3898
- public bool CreateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , Dictionary < string , object > customData = null , string description = null , string conditions = null , string parent = null , string previousSibling = null , Dictionary < string , JObject > output = null , object context = null , object metadata = null , DialogNodeNextStep nextStep = null , List < DialogNodeAction > actions = null , string title = null , string type = null , string eventName = null , string variable = null , string digressIn = null , string digressOut = null , string digressOutSlots = null , string userLabel = null )
3898
+ public bool CreateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , Dictionary < string , object > customData = null , string description = null , string conditions = null , string parent = null , string previousSibling = null , JObject output = null , object context = null , object metadata = null , DialogNodeNextStep nextStep = null , List < DialogNodeAction > actions = null , string title = null , string type = null , string eventName = null , string variable = null , string digressIn = null , string digressOut = null , string digressOutSlots = null , string userLabel = null )
3899
3899
{
3900
3900
if ( callback == null )
3901
3901
throw new ArgumentNullException ( "`callback` is required for `CreateDialogNode`" ) ;
@@ -4328,7 +4328,7 @@ private void OnListDialogNodesResponse(RESTConnector.Request req, RESTConnector.
4328
4328
/// json output from the REST call will be passed in this object as the value of the 'json'
4329
4329
/// key.</string></param>
4330
4330
/// <returns><see cref="DialogNode" />DialogNode</returns>
4331
- public bool UpdateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , Dictionary < string , object > customData = null , string newDialogNode = null , string newDescription = null , string newConditions = null , string newParent = null , string newPreviousSibling = null , Dictionary < string , JObject > newOutput = null , object newContext = null , object newMetadata = null , DialogNodeNextStep newNextStep = null , string newTitle = null , string newType = null , string newEventName = null , string newVariable = null , List < DialogNodeAction > newActions = null , string newDigressIn = null , string newDigressOut = null , string newDigressOutSlots = null , string newUserLabel = null )
4331
+ public bool UpdateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , Dictionary < string , object > customData = null , string newDialogNode = null , string newDescription = null , string newConditions = null , string newParent = null , string newPreviousSibling = null , JObject newOutput = null , object newContext = null , object newMetadata = null , DialogNodeNextStep newNextStep = null , string newTitle = null , string newType = null , string newEventName = null , string newVariable = null , List < DialogNodeAction > newActions = null , string newDigressIn = null , string newDigressOut = null , string newDigressOutSlots = null , string newUserLabel = null )
4332
4332
{
4333
4333
if ( callback == null )
4334
4334
throw new ArgumentNullException ( "`callback` is required for `UpdateDialogNode`" ) ;
0 commit comments