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 KfSwitchEventMessage
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 KfSwitchEventMessage extends EventMessage {
19  
20  	private static final long serialVersionUID = 4319501074109623413L;
21  
22  	public KfSwitchEventMessage() {
23  		super(EventType.kf_switch_session.name());
24  	}
25  
26  	/**
27  	 * 来自的客服账号
28  	 */
29  	@XmlElement(name = "FromKfAccount")
30  	private String fromKfAccount;
31  	/**
32  	 * 转移给客服账号
33  	 */
34  	@XmlElement(name = "ToKfAccount")
35  	private String toKfAccount;
36  
37  	public String getFromKfAccount() {
38  		return fromKfAccount;
39  	}
40  
41  	public String getToKfAccount() {
42  		return toKfAccount;
43  	}
44  
45  	@Override
46  	public String toString() {
47  		return "KfSwitchEventMessage [fromKfAccount=" + fromKfAccount
48  				+ ", toKfAccount=" + toKfAccount + "]";
49  	}
50  }