Skip to content

Commit

Permalink
fix(assistant-v2): add transferInfo property for assistant v2
Browse files Browse the repository at this point in the history
  • Loading branch information
nan2iz committed Sep 14, 2021
1 parent 3dddd1e commit 8d25195
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/IBM.Watson.Assistant.v2/Model/RuntimeResponseGeneric.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2021.
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -153,6 +153,11 @@ public class PreferenceEnumValue
[JsonProperty("agent_unavailable", NullValueHandling = NullValueHandling.Ignore)]
public AgentAvailabilityMessage AgentUnavailable { get; protected set; }
/// <summary>
/// Routing or other contextual information to be used by target service desk systems.
/// </summary>
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
public DialogNodeOutputConnectToAgentTransferInfo TransferInfo { get; protected set; }
/// <summary>
/// A label identifying the topic of the conversation, derived from the **title** property of the relevant node
/// or the **topic** property of the dialog node response.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ public new string MessageToUser
/// Information used by an integration to transfer the conversation to a different channel.
/// </summary>
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
public new ChannelTransferInfo TransferInfo { get; protected set; }
public new ChannelTransferInfo TransferInfo
{
get { return base.TransferInfo; }
set { base.TransferInfo = value; }
}
/// <summary>
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
/// response is intended for a built-in integration and should not be handled by an API client.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2020, 2021.
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -68,7 +68,11 @@ public new AgentAvailabilityMessage AgentUnavailable
/// Routing or other contextual information to be used by target service desk systems.
/// </summary>
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
public new DialogNodeOutputConnectToAgentTransferInfo TransferInfo { get; protected set; }
public new DialogNodeOutputConnectToAgentTransferInfo TransferInfo
{
get { return base.TransferInfo; }
set { base.TransferInfo = value; }
}
/// <summary>
/// A label identifying the topic of the conversation, derived from the **title** property of the relevant node
/// or the **topic** property of the dialog node response.
Expand Down

0 comments on commit 8d25195

Please sign in to comment.