Class CardAction
- java.lang.Object
-
- cloud.genesys.webmessaging.sdk.model.CardAction
-
- All Implemented Interfaces:
Serializable
public class CardAction extends Object implements Serializable
A card action that a user can take. The Default button action.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CardAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPayload()StringgetText()CardActionTypegetType()StringgetUrl()inthashCode()CardActionpayload(String payload)Text to be returned as the payload from a ButtonResponse when a button is clicked.voidsetPayload(String payload)voidsetText(String text)voidsetType(CardActionType type)voidsetUrl(String url)CardActiontext(String text)The response text from the button click.StringtoString()CardActiontype(CardActionType type)Describes the type of action.CardActionurl(String url)A URL of a web page to direct the user to.
-
-
-
Method Detail
-
payload
public CardAction payload(String payload)
Text to be returned as the payload from a ButtonResponse when a button is clicked. The payload and text are a combination which will have to be unique across each card and carousel in order to determine which button was clicked in that card or carousel.
-
getPayload
public String getPayload()
-
setPayload
public void setPayload(String payload)
-
text
public CardAction text(String text)
The response text from the button click.
-
getText
public String getText()
-
setText
public void setText(String text)
-
type
public CardAction type(CardActionType type)
Describes the type of action.
-
getType
public CardActionType getType()
-
setType
public void setType(CardActionType type)
-
url
public CardAction url(String url)
A URL of a web page to direct the user to.
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
-