View Javadoc
1   package com.zone.weixin4j.mp.event;
2   
3   import com.zone.weixin4j.message.event.EventMessage;
4   import com.zone.weixin4j.type.EventType;
5   
6   import javax.xml.bind.annotation.XmlElement;
7   
8   /**
9    * 客服关闭会话事件
10   * 
11   * @className KfCloseEventMessage
12   * @author jinyu(foxinmy@gmail.com)
13   * @date 2015年3月22日
14   * @since JDK 1.6
15   * @see <a
16   *      href="https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1455864026&token=&lang=zh_CN">会话状态通知事件</a>
17   */
18  public class KfCloseEventMessage extends EventMessage {
19  
20  	private static final long serialVersionUID = 3644449346935205541L;
21  	
22  	public KfCloseEventMessage() {
23  		super(EventType.kf_close_session.name());
24  	}
25  
26  	/**
27  	 * 客服账号
28  	 */
29  	@XmlElement(name = "KfAccount")
30  	private String kfAccount;
31  
32  	public String getKfAccount() {
33  		return kfAccount;
34  	}
35  
36  	@Override
37  	public String toString() {
38  		return "KfCloseEventMessage [kfAccount=" + kfAccount + ", ="
39  				+ super.toString() + "]";
40  	}
41  }