Class WebMessagingButtonResponse
- java.lang.Object
-
- cloud.genesys.webmessaging.sdk.model.WebMessagingButtonResponse
-
- All Implemented Interfaces:
Serializable
public class WebMessagingButtonResponse extends Object implements Serializable
Button response object representing the click of a structured message button, such as a quick reply.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebMessagingButtonResponse.TypeEnumDescribes the button that resulted in the Button Response.
-
Constructor Summary
Constructors Constructor Description WebMessagingButtonResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()StringgetPayload()StringgetText()WebMessagingButtonResponse.TypeEnumgetType()inthashCode()WebMessagingButtonResponseid(String id)An ID assigned to the button response (Deprecated).WebMessagingButtonResponsepayload(String payload)The response payload associated with the clicked button.voidsetId(String id)voidsetPayload(String payload)voidsetText(String text)voidsetType(WebMessagingButtonResponse.TypeEnum type)WebMessagingButtonResponsetext(String text)The response text from the button click.StringtoString()WebMessagingButtonResponsetype(WebMessagingButtonResponse.TypeEnum type)Describes the button that resulted in the Button Response.
-
-
-
Method Detail
-
id
public WebMessagingButtonResponse id(String id)
An ID assigned to the button response (Deprecated).
-
getId
public String getId()
-
setId
public void setId(String id)
-
type
public WebMessagingButtonResponse type(WebMessagingButtonResponse.TypeEnum type)
Describes the button that resulted in the Button Response.
-
getType
public WebMessagingButtonResponse.TypeEnum getType()
-
setType
public void setType(WebMessagingButtonResponse.TypeEnum type)
-
text
public WebMessagingButtonResponse text(String text)
The response text from the button click.
-
getText
public String getText()
-
setText
public void setText(String text)
-
payload
public WebMessagingButtonResponse payload(String payload)
The response payload associated with the clicked button.
-
getPayload
public String getPayload()
-
setPayload
public void setPayload(String payload)
-
-