View Javadoc
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   * @className VerifyFailEventMessage
11   * @author jinyu(foxinmy@gmail.com)
12   * @date 2015年10月25日
13   * @since JDK 1.6
14   * @see <a href=
15   *      "https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1455785130&token=&lang=zh_CN">
16   *      认证事件</a>
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  }