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

com.foxinmy.weixin4j.message.TextMessage Maven / Gradle / Ivy

package com.foxinmy.weixin4j.message;

import javax.xml.bind.annotation.XmlElement;

import com.foxinmy.weixin4j.request.WeixinMessage;
import com.foxinmy.weixin4j.type.MessageType;

/**
 * 文本消息
 * 
 * @className TextMessage
 * @author jinyu([email protected])
 * @date 2014年4月6日
 * @since JDK 1.6
 * @see 订阅号、服务号的文本消息
 * @see 企业号的文本消息
 */
public class TextMessage extends WeixinMessage {

	private static final long serialVersionUID = -7018053906644190260L;

	public TextMessage() {
		super(MessageType.text.name());
	}

	/**
	 * 消息内容
	 */
	@XmlElement(name = "Content")
	private String content;

	public String getContent() {
		return content;
	}

	@Override
	public String toString() {
		return "TextMessage [content=" + content + ", " + super.toString()
				+ "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy