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

com.foxinmy.weixin4j.response.TextResponse Maven / Gradle / Ivy

package com.foxinmy.weixin4j.response;

/**
 * 回复文本消息
 * 
 * @className TextResponse
 * @author jinyu([email protected])
 * @date 2015年5月5日
 * @since JDK 1.6
 * @see
 */
public class TextResponse implements WeixinResponse {

	/**
	 * 回复的消息内容(换行:在content中能够换行,微信客户端就支持换行显示)
	 */
	private String content;

	public TextResponse(String content) {
		this.content = content;
	}

	@Override
	public String toContent() {
		return String.format("", content);
	}

	@Override
	public String getMsgType() {
		return "text";
	}

	public String getContent() {
		return content;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy