1 package com.zone.weixin4j.message.event;
2
3 import com.zone.weixin4j.request.WeixinMessage;
4 import com.zone.weixin4j.type.MessageType;
5
6 import javax.xml.bind.annotation.XmlElement;
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class EventMessage extends WeixinMessage {
21
22 private static final long serialVersionUID = 7703667223814088865L;
23
24 protected EventMessage() {
25
26 }
27
28 public EventMessage(String eventType) {
29 super(MessageType.event.name());
30 this.eventType = eventType;
31 }
32
33
34
35
36
37
38 @XmlElement(name = "Event")
39 private String eventType;
40
41 public String getEventType() {
42 return eventType;
43 }
44
45 @Override
46 public String toString() {
47 return "eventType=" + eventType + ", " + super.toString();
48 }
49 }