
cn.zkdcloud.component.message.responseMessage.ResponseTextMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weChat Show documentation
Show all versions of weChat Show documentation
we can use it easy to build weChat
The newest version!
package cn.zkdcloud.component.message.responseMessage;
import cn.zkdcloud.component.message.AbstractResponseMessage;
import cn.zkdcloud.component.message.MsgType;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* 文本消息格式回复
*/
@XStreamAlias("xml")
public class ResponseTextMessage extends AbstractResponseMessage {
/**
* 消息内容(换行:在content中能够换行,微信客户端就支持换行显示)
*/
@XStreamAlias("Content")
private String content;
public ResponseTextMessage() {
super();
this.msgType = MsgType.TEXT;
}
public ResponseTextMessage(String content) {
super();
this.content = content;
this.msgType = MsgType.TEXT;
}
public ResponseTextMessage(String toUserName, String fromUserName) {
super(toUserName, fromUserName);
this.msgType = MsgType.TEXT;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy