@Beta public class CardResponse extends Object implements ResponseInterface
Constructor and Description |
---|
CardResponse()
An empty constructor for incremental building.
|
CardResponse(CardContent content)
Constructor to initialise a new card response with existing CardContent object.
|
Modifier and Type | Method and Description |
---|---|
CardContent |
getContent()
Returns the current content which would be sent as part of a response.
|
String |
getType()
Returns the type of this response, which can not be altered by the user.
|
void |
setContent(CardContent content)
Function replaces the current CardContent (can be null) with the given one.
|
public CardResponse(@Nonnull CardContent content)
content
- the CardContent object to be sent.public CardResponse()
@Nullable public CardContent getContent()
public void setContent(@Nonnull CardContent content)
content
- the new CardContent object@Nullable public String getType()
getType
in interface ResponseInterface
Copyright © 2020 SAP SE. All rights reserved.