public class PostbackButton extends Button
| Modifier and Type | Field and Description |
|---|---|
protected String |
title
The button title.
|
| Constructor and Description |
|---|
PostbackButton(String title,
ButtonType type,
String payload)
Instantiates a new postback button.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getPayload()
Gets the payload.
|
String |
getTitle()
Gets the title.
|
int |
hashCode() |
void |
setPayload(String payload)
Sets the payload.
|
void |
setTitle(String title)
Sets the title.
|
String |
toString() |
@Size(max=20) @NotBlank protected String title
public PostbackButton(String title, ButtonType type, String payload)
title - the titletype - the typepayload - the payloadpublic String getPayload()
public void setPayload(String payload)
payload - the new payloadpublic String getTitle()
public void setTitle(String title)
title - the new titleCopyright © 2017 BotMill. All rights reserved.