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 import javax.xml.bind.annotation.XmlTransient;
8 import java.util.Date;
9
10
11
12
13
14
15
16
17
18
19
20 public class VerifyExpireEventMessage extends EventMessage {
21
22 private static final long serialVersionUID = -4309074299189681095L;
23
24 public VerifyExpireEventMessage() {
25 super(EventType.annual_renew.name());
26 }
27
28
29
30
31 @XmlElement(name = "EventKey")
32 private long expiredTime;
33
34 public long getExpiredTime() {
35 return expiredTime;
36 }
37
38 @XmlTransient
39 public Date getFormatExpiredTime() {
40 return new Date(expiredTime * 1000l);
41 }
42
43 @Override
44 public String toString() {
45 return "VerifyExpireEventMessage [expiredTime=" + expiredTime + ", "
46 + super.toString() + "]";
47 }
48 }