View Javadoc
1   package com.foxinmy.weixin4j.model.qr;
2   
3   import java.io.Serializable;
4   
5   import com.alibaba.fastjson.annotation.JSONField;
6   
7   /**
8    * 二维码
9    * 
10   * @className QRResult
11   * @author jinyu(foxinmy@gmail.com)
12   * @date 2015年7月29日
13   * @since JDK 1.6
14   * @see
15   */
16  public class QRResult implements Serializable {
17  
18  	private static final long serialVersionUID = 7730781702153258151L;
19  
20  	private String ticket;
21  	private String url;
22  	@JSONField(name = "show_qrcode_url")
23  	private String showUrl;
24  	@JSONField(name = "expire_seconds")
25  	private int expireSeconds;
26  	private byte[] content;
27  
28  	public String getTicket() {
29  		return ticket;
30  	}
31  
32  	public void setTicket(String ticket) {
33  		this.ticket = ticket;
34  	}
35  
36  	public String getUrl() {
37  		return url;
38  	}
39  
40  	public void setUrl(String url) {
41  		this.url = url;
42  	}
43  
44  	public String getShowUrl() {
45  		return showUrl;
46  	}
47  
48  	public void setShowUrl(String showUrl) {
49  		this.showUrl = showUrl;
50  	}
51  
52  	public int getExpireSeconds() {
53  		return expireSeconds;
54  	}
55  
56  	public void setExpireSeconds(int expireSeconds) {
57  		this.expireSeconds = expireSeconds;
58  	}
59  
60  	public byte[] getContent() {
61  		return content;
62  	}
63  
64  	public void setContent(byte[] content) {
65  		this.content = content;
66  	}
67  
68  	@Override
69  	public String toString() {
70  		return "QRResult [ticket=" + ticket + ", url=" + url + ", showUrl="
71  				+ showUrl + ", expireSeconds=" + expireSeconds
72  				+ ", content=..." + "]";
73  	}
74  }