-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0df023
commit e7eb77b
Showing
5 changed files
with
62 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...low/src/main/java/org/finos/springbot/workflow/response/templating/TeamsWorkResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.finos.springbot.workflow.response.templating; | ||
|
||
import org.finos.springbot.workflow.annotations.WorkMode; | ||
import org.finos.springbot.workflow.content.Addressable; | ||
import org.finos.springbot.workflow.form.ButtonList; | ||
import org.finos.springbot.workflow.form.ErrorMap; | ||
import org.finos.springbot.workflow.response.WorkResponse; | ||
|
||
import java.util.Map; | ||
|
||
public class TeamsWorkResponse extends WorkResponse { | ||
private final String summary; | ||
|
||
public TeamsWorkResponse(Addressable to, Map<String, Object> data, String templateName, WorkMode m, Class<?> formClass, String summary) { | ||
super(to, data, templateName, m, formClass); | ||
this.summary = summary; | ||
} | ||
|
||
public TeamsWorkResponse(Addressable to, Object o, WorkMode m, ButtonList buttons, ErrorMap errors, String summary) { | ||
super(to, o, m, buttons, errors); | ||
this.summary = summary; | ||
} | ||
|
||
public TeamsWorkResponse(Addressable to, Object o, WorkMode m, String summary) { | ||
super(to, o, m); | ||
this.summary = summary; | ||
} | ||
|
||
public String getSummary() { | ||
return summary; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters