public class RobotAttachment extends java.lang.Object implements MsgAttachment
Constructor and Description |
---|
RobotAttachment() |
RobotAttachment(java.lang.String attStr) |
Modifier and Type | Method and Description |
---|---|
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)
Serialize message attachment to strings and store the strings in the message database or send them to the server.
|
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
in interface MsgAttachment
send
- If attachments are required to be stored in local storage and not to be sent to the server. The parameter can be specified.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)