You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:
Expected Behavior
ResponseBuilder should provide an overloading of the withStandardCard(String title, String text, Image image) method, where I can just pass in a preconstructed StandardCard.
Current Behavior
I have a class with preconstructured Card's and I can not just pass them into the withStandardCard method, so I have to manually set heading, text and image every time.
Steps to Reproduce (for bugs)
// Provide a self-contained, concise snippet of code
// For more complex issues provide a repo with the smallest sample that reproduces the bug
// Including business logic or unrelated code makes diagnosis more difficult
Just construct a Response using the handlerInput's RequestBuilder
Possible Solution
// Not required, but suggest a fix/reason for the bug,
// or ideas how to implement the addition or change
Provide an overloading for the builder method
Your Environment
ASK Java SDK version used: 2.7.1
Operating System and version:
Windows 10
Java Info
Java version used for development: Java 8
The text was updated successfully, but these errors were encountered:
Hey @paulschuetz, we've added a withCard method in ResponseBuilder so that you can pass pre-constructed Card object or its subclass like SimpleCard and StandardCard into response.
This pull request #155 has been merged, we will include it in next release. Please stay tuned.
I'm submitting a...
Expected Behavior
ResponseBuilder should provide an overloading of the withStandardCard(String title, String text, Image image) method, where I can just pass in a preconstructed StandardCard.
Current Behavior
I have a class with preconstructured Card's and I can not just pass them into the withStandardCard method, so I have to manually set heading, text and image every time.
Steps to Reproduce (for bugs)
Just construct a Response using the handlerInput's RequestBuilder
Possible Solution
Provide an overloading for the builder method
Your Environment
Windows 10
Java Info
The text was updated successfully, but these errors were encountered: