package com.firefly.wechat.model.message;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

/**
 * @author Pengtao Qiu
 */
@JacksonXmlRootElement(localName = "xml")
public class TextMessage extends CommonMessage {

    @JacksonXmlProperty(localName = "Content")
    private String content;

    @Override
    public String toString() {
        return "TextMessage{" +
                "url='" + url + '\'' +
                ", toUserName='" + toUserName + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", createTime=" + createTime +
                ", msgType='" + msgType + '\'' +
                ", content='" + content + '\'' +
                ", msgId=" + msgId +
                '}';
    }
}

@@ -389,16 +389,164 @@
 ntent;%0A%0A
+    public String getContent() %7B%0A        return content;%0A    %7D%0A%0A    public void setContent(String content) %7B%0A        this.content = content;%0A    %7D%0A%0A
     @Ove

add getter and setter for text message