1 package com.foxinmy.weixin4j.message.event;
2
3 import javax.xml.bind.annotation.XmlElement;
4
5 import com.foxinmy.weixin4j.type.EventType;
6
7
8
9
10
11
12
13
14
15
16
17
18
19 public class MenuEventMessage extends EventMessage {
20
21 private static final long serialVersionUID = -1049672447995366063L;
22
23 public MenuEventMessage() {
24 super(EventType.click.name());
25 }
26
27 public MenuEventMessage(EventType eventType) {
28 super(eventType.name());
29 }
30
31
32
33
34 @XmlElement(name = "EventKey")
35 private String eventKey;
36
37
38
39 @XmlElement(name = "MenuID")
40 private String menuId;
41
42 public String getEventKey() {
43 return eventKey;
44 }
45
46 public String getMenuId() {
47 return menuId;
48 }
49
50 @Override
51 public String toString() {
52 return "MenuEventMessage [eventKey=" + eventKey + ", menuId=" + menuId
53 + ", " + super.toString() + "]";
54 }
55 }