View Javadoc
1   package com.foxinmy.weixin4j.mp.message;
2   
3   import java.io.Serializable;
4   
5   import com.foxinmy.weixin4j.tuple.NotifyTuple;
6   
7   /**
8    * 客服消息(48小时内不限制发送次数)
9    * 
10   * @author jinyu(foxinmy@gmail.com)
11   * @date 2014年4月4日
12   * @since JDK 1.6
13   * @see com.foxinmy.weixin4j.tuple.Text
14   * @see com.foxinmy.weixin4j.tuple.Image
15   * @see com.foxinmy.weixin4j.tuple.Voice
16   * @see com.foxinmy.weixin4j.tuple.Video
17   * @see com.foxinmy.weixin4j.tuple.Music
18   * @see com.foxinmy.weixin4j.tuple.News
19   * @see <a
20   *      href="https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140547&token=&lang=zh_CN">发送客服消息</a>
21   */
22  public class NotifyMessage implements Serializable {
23  
24  	private static final long serialVersionUID = 7190233634431087729L;
25  
26  	/**
27  	 * 用户的openid
28  	 */
29  	private String touser;
30  	/**
31  	 * 消息对象
32  	 */
33  	private NotifyTuple tuple;
34  
35  	public NotifyMessage(String touser, NotifyTuple tuple) {
36  		this.touser = touser;
37  		this.tuple = tuple;
38  	}
39  
40  	public String getTouser() {
41  		return touser;
42  	}
43  
44  	public NotifyTuple getTuple() {
45  		return tuple;
46  	}
47  
48  	@Override
49  	public String toString() {
50  		return "NotifyMessage [touser=" + touser + ", tuple=" + tuple + "]";
51  	}
52  }