View Javadoc
1   package com.foxinmy.weixin4j.mp.event;
2   
3   import javax.xml.bind.annotation.XmlElement;
4   
5   import com.foxinmy.weixin4j.message.event.EventMessage;
6   import com.foxinmy.weixin4j.type.EventType;
7   
8   /**
9    * 客服接入会话事件
10   * 
11   * @className KfCreateEventMessage
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 KfCreateEventMessage extends EventMessage {
19  
20  	private static final long serialVersionUID = -8968189700999202108L;
21  
22  	public KfCreateEventMessage() {
23  		super(EventType.kf_create_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 "KfCreateEventMessage [kfAccount=" + kfAccount + ", ="
39  				+ super.toString() + "]";
40  	}
41  }