Skip to content

Commit f38f172

Browse files
committed
Merge 4.0.0-rc2 into feat/dynamic-model
2 parents 40a4ba4 + 66fcbf0 commit f38f172

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Examples/GenericSerialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void Start()
4747
//Log.Debug("GenericSerialization", "main skill: {0}", uDefinedObject["name"]);
4848
//Log.Debug("GenericSerialization", "test: {0}", messageResponse);
4949

50-
var name = messageResponse.Context.Skills.Skill.UserDefined["name"].ToString();
50+
var name = messageResponse.Context.Skills.Get("main skill").UserDefined["name"].ToString();
5151
Log.Debug("GenericSerialization", "name: {0}", name);
5252

5353
}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ IEnumerator TokenExample()
119119
yield return null;
120120

121121
assistant = new AssistantService(versionDate, authenticator);
122+
assistant.SetServiceUrl("<service-url>");
122123
assistant.ListWorkspaces(callback: OnListWorkspaces);
123124
}
124125

@@ -140,6 +141,7 @@ void TokenExample()
140141
authenticator = new BearerTokenAuthenticator("<bearer-token>");
141142

142143
assistant = new AssistantService(versionDate, authenticator);
144+
assistant.SetServiceUrl("<service-url>");
143145
assistant.ListWorkspaces(callback: OnListWorkspaces);
144146
}
145147

@@ -159,6 +161,7 @@ void UsernamePasswordExample()
159161
{
160162
Authenticator authenticator = new BasicAuthenticator("<username>", "<password>", "<url>");
161163
assistant = new AssistantService(versionDate, authenticator);
164+
assistant.SetServiceUrl("<service-url>");
162165
}
163166
```
164167

@@ -221,8 +224,10 @@ Authenticator discoveryAuthenticator;
221224
private void Example()
222225
{
223226
assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);
227+
assistant.SetServiceUrl("<service-url>");
224228

225229
discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);
230+
discovery.SetServiceUrl("<service-url>");
226231

227232
// Call with sepcific callbacks
228233
assistant.Message(
@@ -260,6 +265,7 @@ Authenticator discoveryAuthenticator;
260265
private void Example()
261266
{
262267
assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);
268+
assistant.SetServiceUrl("<service-url>");
263269

264270
// Call with generic callbacks
265271
JObject input = new JObject();
@@ -270,6 +276,9 @@ private void Example()
270276
input: input
271277
);
272278

279+
discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);
280+
discovery.SetServiceUrl("<service-url>");
281+
273282
discovery.ListEnvironments(
274283
callback: OnSuccess
275284
);
@@ -303,6 +312,7 @@ private void Example()
303312
sort: "-name",
304313
includeAudit: true
305314
);
315+
assistant.SetServiceUrl("<service-url>");
306316
}
307317
```
308318

Scripts/Services/Assistant/V2/Model/MessageContextSkills.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
using IBM.Cloud.SDK.Model;
19-
using Newtonsoft.Json;
2019

2120
namespace IBM.Watson.Assistant.V2.Model
2221
{
@@ -28,13 +27,5 @@ namespace IBM.Watson.Assistant.V2.Model
2827
/// </summary>
2928
public class MessageContextSkills: DynamicModel<MessageContextSkill>
3029
{
31-
/// <summary>
32-
/// Information specific to particular skills used by the Assistant.
33-
///
34-
/// **Note:** Currently, only a single property named `main skill` is supported. This object contains variables
35-
/// that apply to the dialog skill used by the assistant.
36-
/// </summary>
37-
[JsonProperty("main skill", NullValueHandling = NullValueHandling.Ignore)]
38-
public MessageContextSkill Skill { get; set; }
3930
}
4031
}

0 commit comments

Comments
 (0)