public class TextTemplate extends Object implements TemplateParams
| Modifier and Type | Class and Description |
|---|---|
static class |
TextTemplate.Builder
Class for building text template.
|
| Constructor and Description |
|---|
TextTemplate(TextTemplate.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
List<ButtonObject> |
getButtons() |
String |
getButtonTitle() |
LinkObject |
getLinkObject() |
String |
getObjectType()
Template type such as FEED, LIST, etc.
|
String |
getText() |
static TextTemplate.Builder |
newBuilder(String text,
LinkObject linkObject) |
org.json.JSONObject |
toJSONObject()
Any message type should be converted to JSONObject before they are validated or sent to
KakaoTalk.
|
public TextTemplate(TextTemplate.Builder builder)
public List<ButtonObject> getButtons()
public String getButtonTitle()
public LinkObject getLinkObject()
public String getObjectType()
TemplateParamsgetObjectType in interface TemplateParamspublic String getText()
public static TextTemplate.Builder newBuilder(String text, LinkObject linkObject)
public org.json.JSONObject toJSONObject()
TemplateParamstoJSONObject in interface TemplateParams