|
1 | 1 | /* |
2 | | - * (C) Copyright IBM Corp. 2019, 2025. |
| 2 | + * (C) Copyright IBM Corp. 2019, 2026. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
5 | 5 | * the License. You may obtain a copy of the License at |
|
31 | 31 | * RuntimeResponseGenericRuntimeResponseTypeSearch - |
32 | 32 | * RuntimeResponseGenericRuntimeResponseTypeUserDefined - |
33 | 33 | * RuntimeResponseGenericRuntimeResponseTypeVideo - RuntimeResponseGenericRuntimeResponseTypeAudio - |
34 | | - * RuntimeResponseGenericRuntimeResponseTypeIframe - RuntimeResponseGenericRuntimeResponseTypeDate |
| 34 | + * RuntimeResponseGenericRuntimeResponseTypeIframe - RuntimeResponseGenericRuntimeResponseTypeDate - |
| 35 | + * RuntimeResponseGenericRuntimeResponseTypeDtmf - |
| 36 | + * RuntimeResponseGenericRuntimeResponseTypeEndSession |
35 | 37 | */ |
36 | 38 | public class RuntimeResponseGeneric extends GenericModel { |
37 | 39 | @SuppressWarnings("unused") |
@@ -60,6 +62,9 @@ public class RuntimeResponseGeneric extends GenericModel { |
60 | 62 | discriminatorMapping.put( |
61 | 63 | "user_defined", RuntimeResponseGenericRuntimeResponseTypeUserDefined.class); |
62 | 64 | discriminatorMapping.put("video", RuntimeResponseGenericRuntimeResponseTypeVideo.class); |
| 65 | + discriminatorMapping.put("dtmf", RuntimeResponseGenericRuntimeResponseTypeDtmf.class); |
| 66 | + discriminatorMapping.put( |
| 67 | + "end_session", RuntimeResponseGenericRuntimeResponseTypeEndSession.class); |
63 | 68 | } |
64 | 69 | /** The preferred type of control to display. */ |
65 | 70 | public interface Preference { |
@@ -134,6 +139,9 @@ public interface Preference { |
134 | 139 | @SerializedName("image_url") |
135 | 140 | protected String imageUrl; |
136 | 141 |
|
| 142 | + @SerializedName("command_info") |
| 143 | + protected DtmfCommandInfo commandInfo; |
| 144 | + |
137 | 145 | protected RuntimeResponseGeneric() {} |
138 | 146 |
|
139 | 147 | /** |
@@ -470,4 +478,13 @@ public Map<String, Object> channelOptions() { |
470 | 478 | public String imageUrl() { |
471 | 479 | return imageUrl; |
472 | 480 | } |
| 481 | + |
| 482 | + /** |
| 483 | + * Gets the commandInfo. |
| 484 | + * |
| 485 | + * @return the commandInfo |
| 486 | + */ |
| 487 | + public DtmfCommandInfo commandInfo() { |
| 488 | + return commandInfo; |
| 489 | + } |
473 | 490 | } |
0 commit comments