Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit c04068b

Browse files
author
Eric Dahlvang
committed
set type in constructor for TaskModuleContinueResponse and TaskModuleMessageResponse
1 parent ae22bba commit c04068b

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/TaskModuleContinueResponse.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ public class TaskModuleContinueResponse extends TaskModuleResponseBase {
1212
@JsonProperty(value = "value")
1313
private TaskModuleTaskInfo value;
1414

15+
/**
16+
* Initializes a new instance.
17+
*/
18+
public TaskModuleContinueResponse() {
19+
setType("continue");
20+
}
21+
1522
/**
1623
* Gets the Adaptive card to appear in the task module.
17-
*
24+
*
1825
* @return The value info.
1926
*/
2027
public TaskModuleTaskInfo getValue() {
@@ -23,7 +30,7 @@ public TaskModuleTaskInfo getValue() {
2330

2431
/**
2532
* Sets the Adaptive card to appear in the task module.
26-
*
33+
*
2734
* @param withValue The value info.
2835
*/
2936
public void setValue(TaskModuleTaskInfo withValue) {

libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/TaskModuleMessageResponse.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ public class TaskModuleMessageResponse extends TaskModuleResponseBase {
1212
@JsonProperty(value = "value")
1313
private String value;
1414

15+
/**
16+
* Initializes a new instance.
17+
*/
18+
public TaskModuleMessageResponse() {
19+
setType("message");
20+
}
21+
1522
/**
1623
* Gets info teams will display the value of value in a popup message box.
17-
*
24+
*
1825
* @return The popup info.
1926
*/
2027
public String getValue() {
@@ -23,7 +30,7 @@ public String getValue() {
2330

2431
/**
2532
* Sets info teams will display the value of value in a popup message box.
26-
*
33+
*
2734
* @param withValue The popup info.
2835
*/
2936
public void setValue(String withValue) {

0 commit comments

Comments
 (0)