1 package com.foxinmy.weixin4j.pay.payment.mch;
2
3 import com.alibaba.fastjson.annotation.JSONField;
4
5 import javax.xml.bind.annotation.XmlAccessType;
6 import javax.xml.bind.annotation.XmlAccessorType;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlRootElement;
9
10
11
12
13
14
15
16
17
18
19 @XmlRootElement
20 @XmlAccessorType(XmlAccessType.FIELD)
21 public class OpenIdResult extends MerchantResult {
22
23 private static final long serialVersionUID = 902743989722741814L;
24
25
26
27
28 @XmlElement(name = "openid")
29 @JSONField(name = "openid")
30 private String openId;
31
32
33
34
35 @XmlElement(name = "sub_openid")
36 @JSONField(name = "sub_openid")
37 private String subOpenId;
38
39 public String getOpenId() {
40 return openId;
41 }
42
43 public void setOpenId(String openId) {
44 this.openId = openId;
45 }
46
47 public String getSubOpenId() {
48 return subOpenId;
49 }
50
51 public void setSubOpenId(String subOpenId) {
52 this.subOpenId = subOpenId;
53 }
54
55 @Override
56 public String toString() {
57 return "OpenIdResult [openId=" + openId + ", subOpenId=" + subOpenId
58 + ", " + super.toString() + "]";
59 }
60 }