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