Skip to content

Commit 8d25195

Browse files
committed
fix(assistant-v2): add transferInfo property for assistant v2
1 parent 3dddd1e commit 8d25195

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/IBM.Watson.Assistant.v2/Model/RuntimeResponseGeneric.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -153,6 +153,11 @@ public class PreferenceEnumValue
153153
[JsonProperty("agent_unavailable", NullValueHandling = NullValueHandling.Ignore)]
154154
public AgentAvailabilityMessage AgentUnavailable { get; protected set; }
155155
/// <summary>
156+
/// Routing or other contextual information to be used by target service desk systems.
157+
/// </summary>
158+
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
159+
public DialogNodeOutputConnectToAgentTransferInfo TransferInfo { get; protected set; }
160+
/// <summary>
156161
/// A label identifying the topic of the conversation, derived from the **title** property of the relevant node
157162
/// or the **topic** property of the dialog node response.
158163
/// </summary>

src/IBM.Watson.Assistant.v2/Model/RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ public class RuntimeResponseGenericRuntimeResponseTypeChannelTransfer : RuntimeR
4848
/// Information used by an integration to transfer the conversation to a different channel.
4949
/// </summary>
5050
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
51-
public new ChannelTransferInfo TransferInfo { get; protected set; }
51+
public new ChannelTransferInfo TransferInfo
52+
{
53+
get { return base.TransferInfo; }
54+
set { base.TransferInfo = value; }
55+
}
5256
/// <summary>
5357
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
5458
/// response is intended for a built-in integration and should not be handled by an API client.

src/IBM.Watson.Assistant.v2/Model/RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2020, 2021.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -68,7 +68,11 @@ public class RuntimeResponseGenericRuntimeResponseTypeConnectToAgent : RuntimeRe
6868
/// Routing or other contextual information to be used by target service desk systems.
6969
/// </summary>
7070
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
71-
public new DialogNodeOutputConnectToAgentTransferInfo TransferInfo { get; protected set; }
71+
public new DialogNodeOutputConnectToAgentTransferInfo TransferInfo
72+
{
73+
get { return base.TransferInfo; }
74+
set { base.TransferInfo = value; }
75+
}
7276
/// <summary>
7377
/// A label identifying the topic of the conversation, derived from the **title** property of the relevant node
7478
/// or the **topic** property of the dialog node response.

0 commit comments

Comments
 (0)