1 package com.zone.weixin4j.mp.event;
2
3 import javax.xml.bind.annotation.XmlElement;
4 import javax.xml.bind.annotation.XmlTransient;
5 import java.util.Date;
6
7
8
9
10
11
12
13
14
15
16
17
18 public class VerifyFailEventMessage extends VerifyExpireEventMessage {
19
20
21
22
23 private static final long serialVersionUID = 2155899086751787490L;
24
25
26
27
28 @XmlElement(name = "FailTime")
29 private long failTime;
30
31
32
33 @XmlElement(name = "FailReason")
34 private String failReason;
35
36 public long getFailTime() {
37 return failTime;
38 }
39
40 @XmlTransient
41 public Date getFormatFailTime() {
42 return new Date(failTime * 1000l);
43 }
44
45 public String getFailReason() {
46 return failReason;
47 }
48
49 @Override
50 public String toString() {
51 return "VerifyFailEventMessage [failTime=" + failTime + ", failReason=" + failReason + ", " + super.toString()
52 + "]";
53 }
54 }