public class ActionCardMessage extends BaseMessage
msgtype| 构造器和说明 |
|---|
ActionCardMessage() |
ActionCardMessage(String title,
String text) |
ActionCardMessage(String title,
String text,
ActionCardButton button) |
ActionCardMessage(String title,
String text,
HideAvatarType hideAvatar) |
ActionCardMessage(String title,
String text,
HideAvatarType hideAvatar,
ActionCardButton button) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addButton(ActionCardButton button)
增加操作按钮
|
ButtonOrientationType |
getBtnOrientation() |
List<ActionCardButton> |
getButtons() |
HideAvatarType |
getHideAvatar() |
String |
getText() |
String |
getTitle() |
protected void |
init()
初始化MmessageType方法
|
boolean |
isButtonView() |
void |
setBtnOrientation(ButtonOrientationType btnOrientation) |
void |
setButtonView(boolean buttonView) |
void |
setHideAvatar(HideAvatarType hideAvatar) |
void |
setText(String text) |
void |
setTitle(String title) |
Map |
toMessageMap()
返回Message对象组装出来的Map对象,供后续JSON序列化
|
getMsgtypepublic ActionCardMessage()
public ActionCardMessage(String title, String text, HideAvatarType hideAvatar)
public ActionCardMessage(String title, String text, ActionCardButton button)
public ActionCardMessage(String title, String text, HideAvatarType hideAvatar, ActionCardButton button)
protected void init()
BaseMessageinit 在类中 BaseMessagepublic Map toMessageMap()
BaseMessagetoMessageMap 在类中 BaseMessagepublic void addButton(ActionCardButton button)
button - public String getTitle()
public void setTitle(String title)
public String getText()
public void setText(String text)
public HideAvatarType getHideAvatar()
public void setHideAvatar(HideAvatarType hideAvatar)
public ButtonOrientationType getBtnOrientation()
public void setBtnOrientation(ButtonOrientationType btnOrientation)
public List<ActionCardButton> getButtons()
public boolean isButtonView()
public void setButtonView(boolean buttonView)
Copyright © 2018. All rights reserved.