-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Expand file tree
/
Copy pathWxCpAgent.java
More file actions
135 lines (107 loc) · 2.73 KB
/
Copy pathWxCpAgent.java
File metadata and controls
135 lines (107 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package me.chanjar.weixin.cp.bean;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* <pre>
* 企业号应用信息.
* Created by huansinho on 2018/4/13.
* </pre>
*
* @author <a href="https://github.com/huansinho">huansinho</a>
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpAgent implements Serializable {
private static final long serialVersionUID = 5002894979081127234L;
@SerializedName("errcode")
private Integer errCode;
@SerializedName("errmsg")
private String errMsg;
@SerializedName("agentid")
private Long agentId;
@SerializedName("name")
private String name;
@SerializedName("square_logo_url")
private String squareLogoUrl;
@SerializedName("logo_mediaid")
private String logoMediaId;
@SerializedName("description")
private String description;
@SerializedName("allow_userinfos")
private Users allowUserInfos;
@SerializedName("allow_partys")
private Parties allowParties;
@SerializedName("allow_tags")
private Tags allowTags;
@SerializedName("close")
private Integer close;
@SerializedName("redirect_domain")
private String redirectDomain;
@SerializedName("report_location_flag")
private Integer reportLocationFlag;
@SerializedName("isreportenter")
private Integer isReportEnter;
@SerializedName("home_url")
private String homeUrl;
@SerializedName("customized_publish_status")
private Integer customizedPublishStatus;
/**
* From json wx cp agent.
*
* @param json the json
* @return the wx cp agent
*/
public static WxCpAgent fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpAgent.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* The type Users.
*/
@Data
public static class Users implements Serializable {
private static final long serialVersionUID = 8801100463558788565L;
@SerializedName("user")
private List<User> users;
}
/**
* The type User.
*/
@Data
public static class User implements Serializable {
private static final long serialVersionUID = 7287632514385508024L;
@SerializedName("userid")
private String userId;
}
/**
* The type Parties.
*/
@Data
public static class Parties {
@SerializedName("partyid")
private List<Long> partyIds = null;
}
/**
* The type Tags.
*/
@Data
public static class Tags {
@SerializedName("tagid")
private List<Integer> tagIds = null;
}
}