View Javadoc
1   package com.zone.weixin4j.response;
2   
3   /**
4    * 单一内容回复
5    *
6    * @className SingleResponse
7    * @author jinyu(foxinmy@gmail.com)
8    * @date 2015年8月3日
9    * @since JDK 1.6
10   * @see
11   */
12  public class SingleResponse implements WeixinResponse {
13  
14  	private final String content;
15  
16  	public SingleResponse(String content) {
17  		this.content = content;
18  	}
19  
20  	@Override
21  	public String toContent() {
22  		return content;
23  	}
24  
25  	@Override
26  	public String getMsgType() {
27  		return "single";
28  	}
29  
30  	@Override
31  	public String toString() {
32  		return "SingleResponse [content=" + content + "]";
33  	}
34  }