View Javadoc
1   package com.foxinmy.weixin4j.payment.mch;
2   
3   import javax.xml.bind.annotation.XmlAccessType;
4   import javax.xml.bind.annotation.XmlAccessorType;
5   import javax.xml.bind.annotation.XmlElement;
6   import javax.xml.bind.annotation.XmlRootElement;
7   
8   import com.alibaba.fastjson.annotation.JSONField;
9   
10  /**
11   * authcode2openid
12   * 
13   * @className OpenIdResult
14   * @author jinyu(foxinmy@gmail.com)
15   * @date 2015年7月23日
16   * @since JDK 1.6
17   * @see
18   * @deprecated 迁移到子模块weixin4j-pay
19   */
20  @Deprecated
21  @XmlRootElement
22  @XmlAccessorType(XmlAccessType.FIELD)
23  public class OpenIdResult extends MerchantResult {
24  
25  	private static final long serialVersionUID = 902743989722741814L;
26  
27  	/**
28  	 * 用户在商户appid下的唯一标识
29  	 */
30  	@XmlElement(name = "openid")
31  	@JSONField(name = "openid")
32  	private String openId;
33  
34  	/**
35  	 * 用户在商户appid下的唯一标识
36  	 */
37  	@XmlElement(name = "sub_openid")
38  	@JSONField(name = "sub_openid")
39  	private String subOpenId;
40  
41  	public String getOpenId() {
42  		return openId;
43  	}
44  
45  	public String getSubOpenId() {
46  		return subOpenId;
47  	}
48  
49  	@Override
50  	public String toString() {
51  		return "OpenIdResult [openId=" + openId + ", subOpenId=" + subOpenId
52  				+ ", " + super.toString() + "]";
53  	}
54  }