MyObject.java
4.09 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
package com.glsk.compute.brand;
import java.util.List;
/**
* @author fangfang
* @create 2024-03-07 14:39
*/
public class MyObject {
int code;
String errId;
String message;
List<Data> data;
@Override
public String toString() {
return "MyObject{" +
"code=" + code +
", errId='" + errId + '\'' +
", message='" + message + '\'' +
", data=" + data +
'}';
}
public MyObject() {
}
public MyObject(int code, String errId, String message, List<Data> data) {
this.code = code;
this.errId = errId;
this.message = message;
this.data = data;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getErrId() {
return errId;
}
public void setErrId(String errId) {
this.errId = errId;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<Data> getData() {
return data;
}
public void setData(List<Data> data) {
this.data = data;
}
public static class Data{
String id;
String label;
String logoUrl;
List<Children> children;
public Data(String id, String label, String logoUrl, List<Children> children) {
this.id = id;
this.label = label;
this.logoUrl = logoUrl;
this.children = children;
}
public Data() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getLogoUrl() {
return logoUrl;
}
public void setLogoUrl(String logoUrl) {
this.logoUrl = logoUrl;
}
public List<Children> getChildren() {
return children;
}
public void setChildren(List<Children> children) {
this.children = children;
}
@Override
public String toString() {
return "Data{" +
"id='" + id + '\'' +
", label='" + label + '\'' +
", logoUrl='" + logoUrl + '\'' +
", children=" + children +
'}';
}
public static class Children{
String id;
String label;
String logoUrl;
String children;
@Override
public String toString() {
return "Children{" +
"id='" + id + '\'' +
", label='" + label + '\'' +
", logoUrl='" + logoUrl + '\'' +
", children='" + children + '\'' +
'}';
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getLogoUrl() {
return logoUrl;
}
public void setLogoUrl(String logoUrl) {
this.logoUrl = logoUrl;
}
public String getChildren() {
return children;
}
public void setChildren(String children) {
this.children = children;
}
public Children() {
}
public Children(String id, String label, String logoUrl, String children) {
this.id = id;
this.label = label;
this.logoUrl = logoUrl;
this.children = children;
}
}
}
}