public class RobotAttachment extends java.lang.Object implements MsgAttachment
构造器和说明 |
---|
RobotAttachment() |
RobotAttachment(java.lang.String attStr) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getFromRobotAccount() |
java.lang.String |
getRequestContent() |
java.lang.String |
getRequestParams() |
java.lang.String |
getRequestTarget() |
java.lang.String |
getRequestType() |
java.lang.String |
getResponse() |
java.lang.String |
getResponseForMessageId() |
void |
initSend(java.lang.String robotAccount,
java.lang.String type,
java.lang.String content,
java.lang.String target,
java.lang.String params) |
boolean |
isRobotSend() |
void |
setFromRobotAccount(java.lang.String fromRobotAccount) |
void |
setRequestContent(java.lang.String requestContent) |
void |
setRequestParams(java.lang.String requestParams) |
void |
setRequestTarget(java.lang.String requestTarget) |
void |
setRequestType(java.lang.String requestType) |
void |
setResponseForMessageId(java.lang.String responseForMessageId) |
void |
setRobotSend(boolean robotSend) |
java.lang.String |
toJson(boolean send)
将消息附件序列化为字符串,存储到消息数据库或发送到服务器。
|
public RobotAttachment()
public RobotAttachment(java.lang.String attStr)
public void initSend(java.lang.String robotAccount, java.lang.String type, java.lang.String content, java.lang.String target, java.lang.String params)
public java.lang.String toJson(boolean send)
MsgAttachment
toJson
在接口中 MsgAttachment
send
- 如果你的附件在本地需要存储额外数据,而这些数据不需要发送到服务器,可依据该参数值区别对待。public boolean isRobotSend()
public void setRobotSend(boolean robotSend)
public java.lang.String getFromRobotAccount()
public void setFromRobotAccount(java.lang.String fromRobotAccount)
public java.lang.String getResponseForMessageId()
public void setResponseForMessageId(java.lang.String responseForMessageId)
public java.lang.String getResponse()
public java.lang.String getRequestType()
public void setRequestType(java.lang.String requestType)
public java.lang.String getRequestContent()
public void setRequestContent(java.lang.String requestContent)
public java.lang.String getRequestTarget()
public void setRequestTarget(java.lang.String requestTarget)
public java.lang.String getRequestParams()
public void setRequestParams(java.lang.String requestParams)