View Javadoc
1   package com.zone.weixin4j.qy.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 EnterAgentEventMessage
12   * @author jinyu(foxinmy@gmail.com)
13   * @date 2014年12月28日
14   * @since JDK 1.6
15   * @see <a href=
16   *      "http://qydev.weixin.qq.com/wiki/index.php?title=%E6%8E%A5%E6%94%B6%E4%BA%8B%E4%BB%B6#.E7.94.A8.E6.88.B7.E8.BF.9B.E5.85.A5.E5.BA.94.E7.94.A8.E7.9A.84.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81"
17   *      >用户进入应用的事件推送</a>
18   */
19  public class EnterAgentEventMessage extends EventMessage {
20  
21  	private static final long serialVersionUID = 7675732524832500820L;
22  
23  	public EnterAgentEventMessage() {
24  		super(EventType.enter_agent.name());
25  	}
26  
27  	/**
28  	 * 事件KEY值,与自定义菜单接口中KEY值对应
29  	 */
30  	@XmlElement(name = "EventKey")
31  	private String eventKey;
32  
33  	public String getEventKey() {
34  		return eventKey;
35  	}
36  
37  	@Override
38  	public String toString() {
39  		return "EnterAgentEventMessage [eventKey=" + eventKey + ", "
40  				+ super.toString() + "]";
41  	}
42  }