All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.zkdcloud.component.message.responseMessage.ResponseTextMessage Maven / Gradle / Ivy

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