wjc
2024-12-23 f753d8366041354da60b8096060f3ab5159e3880
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
package com.hdl.sdk.link.core.bean.request;
 
import java.io.Serializable;
 
/**
 * Created by jlchen on 11/11/21.
 *
 * @Description : AuthenticateRequest
 * 三方网络设备入网及认证 请求参数
 * 请求topic:/user/all/custom/deivce/network_access/request
 */
public class AuthenticateRequest implements Serializable {
    private String id;
    private String time_stamp;
    private AuthenticateDeviceInfoBean objects;//当前设备基本信息
    private AuthBean auth;//认证信息
 
    public String getID() { return id; }
    public void setID(String value) { this.id = value; }
 
    public String getTimeStamp() { return time_stamp; }
    public void setTimeStamp(String value) { this.time_stamp = value; }
 
    public AuthenticateDeviceInfoBean getObjects() { return objects; }
    public void setObjects(AuthenticateDeviceInfoBean value) { this.objects = value; }
 
    public AuthBean getAuth() { return auth; }
    public void setAuth(AuthBean value) { this.auth = value; }
 
    public AuthenticateRequest(String id, String time_stamp, AuthenticateDeviceInfoBean objects, AuthBean auth) {
        this.id = id;
        this.time_stamp = time_stamp;
        this.objects = objects;
        this.auth = auth;
    }
 
    public static class AuthBean implements Serializable {
        private String mac_key;//(mac+secret)的两次md5值
        private String spk;
        private RequestBean request;//设备相关信息
 
        public String getMACKey() { return mac_key; }
        public void setMACKey(String value) { this.mac_key = value; }
 
        public String getSpk() { return spk; }
        public void setSpk(String value) { this.spk = value; }
 
        public RequestBean getRequest() { return request; }
        public void setRequest(RequestBean value) { this.request = value; }
 
        public AuthBean() {
 
        }
        public AuthBean(String mac_key, String spk, RequestBean request) {
            this.mac_key = mac_key;
            this.spk = spk;
            this.request = request;
        }
    }
 
    public static class RequestBean implements Serializable{
        private String mac;//设备mac
        private String supplier;//厂家
        private String hardware_model;//设备型号
        private String firmware_version;//程序版本
        public RequestBean(){};
        public RequestBean(String mac, String supplier, String hardware_model, String firmware_version) {
            this.mac = mac;
            this.supplier = supplier;
            this.hardware_model = hardware_model;
            this.firmware_version = firmware_version;
        }
 
        public String getMAC() { return mac; }
        public void setMAC(String value) { this.mac = value; }
 
        public String getSupplier() { return supplier; }
        public void setSupplier(String value) { this.supplier = value; }
 
        public String getHardwareModel() { return hardware_model; }
        public void setHardwareModel(String value) { this.hardware_model = value; }
 
        public String getFirmwareVersion() { return firmware_version; }
        public void setFirmwareVersion(String value) { this.firmware_version = value; }
    }
 
    public static class AuthenticateDeviceInfoBean implements Serializable{
        private String oid;//设备的Oid
        private String device_mac;//设备的Mac
        private String device_name;//
        private String device_model;
        private String access_mode;
        private String sid;
        private String ip_mac;
        private String ip_address;
        private String netmask = "255.255.255.0";
        private String ip_gateway;
        private String dns1 = "114.114.114.114";
        private String dns2 = "8.8.8.8";
        private String gateway_type;
        private String hw_version;
        private String fw_version;
 
        public String getOID() { return oid; }
 
        /**
         * 设备Oid
         * @param value
         */
        public void setOID(String value) { this.oid = value; }
 
        public String getDeviceMAC() { return device_mac; }
 
        /**
         * 设备Mac
         * @param value
         */
        public void setDeviceMAC(String value) { this.device_mac = value; }
 
        /**
         * 设备名
         * @return
         */
        public String getDeviceName() { return device_name; }
 
        /**
         * 设备名
         * @param value
         */
        public void setDeviceName(String value) { this.device_name = value; }
 
        /**
         * 设备型号
         * @return
         */
        public String getDeviceModel() { return device_model; }
 
        /**
         * 设备型号
         * @param value
         */
        public void setDeviceModel(String value) { this.device_model = value; }
 
        /**
         * 连接类型,有线还是无线
         * @return
         */
        public String getAccessMode() { return access_mode; }
 
        /**
         * 连接类型,有线还是无线
         * @param value
         */
        public void setAccessMode(String value) { this.access_mode = value; }
 
        /**
         * 设备sid
         * @return
         */
        public String getSid() { return sid; }
 
        /**
         * 设备sid
         * @param value
         */
        public void setSid(String value) { this.sid = value; }
 
        /**
         * 设备IPMAC
         * @return
         */
        public String getIPMAC() { return ip_mac; }
 
        /**
         * 设备IPMAC
         * @param value
         */
        public void setIPMAC(String value) { this.ip_mac = value; }
 
        /**
         * 设备IP地址
         * @return
         */
        public String getIPAddress() { return ip_address; }
 
        /**
         * 设备IP地址
         * @param value
         */
        public void setIPAddress(String value) { this.ip_address = value; }
 
        /**
         * 子网掩码
         * @return
         */
        public String getNetmask() { return netmask; }
 
        /**
         * 子网掩码
         * @param value
         */
        public void setNetmask(String value) { this.netmask = value; }
 
        /**
         * 网关IP
         * @return
         */
        public String getIPGateway() { return ip_gateway; }
 
        /**
         * 网关IP
         * @param value
         */
        public void setIPGateway(String value) { this.ip_gateway = value; }
 
        /**
         * DNS1
         * @return
         */
        public String getDns1() { return dns1; }
 
        /**
         * DNS1
         * @param value
         */
        public void setDns1(String value) { this.dns1 = value; }
 
        /**
         * DNS2
         * @return
         */
        public String getDns2() { return dns2; }
 
        /**
         * DNS2
         * @param value
         */
        public void setDns2(String value) { this.dns2 = value; }
 
        public VersionBean[] getVersions() {return null;  }
        public void setVersions(VersionBean[] value) {  }
 
        /**
         * 网关类型
         * @return
         */
        public String getGateway_type() {
            return gateway_type;
        }
 
        /**
         * 网关类型
         * @param gateway_type
         */
        public void setGateway_type(String gateway_type) {
            this.gateway_type = gateway_type;
        }
 
        /**
         * 硬件版本
         * @return
         */
        public String getHw_version() {
            return hw_version;
        }
 
        /**
         *硬件版本
         * @param
         */
        public void setHw_version(String hw_version) {
            this.hw_version = hw_version;
        }
 
 
        /**
         * 固件版本
         * @return
         */
        public String getFw_version() {
            return fw_version;
        }
 
        /**
         * 固件版本
         * @param fw_version
         */
        public void setFw_version(String fw_version) {
            this.fw_version = fw_version;
        }
    }
 
    public static class VersionBean implements Serializable{
        private String module;
        private String version;
 
        public VersionBean(String module, String version) {
            this.module = module;
            this.version = version;
        }
 
        public String getModule() {
            return module;
        }
 
        public void setModule(String value) {
            this.module = value;
        }
    }
}