wjc
2025-05-07 b9cc7390e8e8ce64c41c26fb369c98ce669d660c
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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
package com.hdl.sdk.link.core.bean.gateway;
 
import android.text.TextUtils;
 
import androidx.annotation.NonNull;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * Created by hxb on 2021/12/15.
 * 网关对象
 */
public class GatewayBean implements Serializable {
 
 
    /**
     * true-在线
     * false-离线
     */
    private boolean online = true;
    /**
     * 网关型号
     */
    private String device_model;
    /**
     * 网关备注
     */
    private String device_name;
    /**
     * 网关Mac
     */
    private String device_mac;
    /**
     * 网关Id
     */
    private String gatewayId;
    /**
     * 网关类型
     */
    private String gatewayType;
    private String gateway_type;
    /**
     * 网关oid
     */
    private String oid;
    /**
     * IP地址
     */
    private String ip_address;
    /**
     * 连接的网关类型 LAN WIFI
     */
    private String access_mode;
    /**
     * 是否主网关 true false,用于link网驱动
     */
    private String master;
 
 
    /**
     * 是否主网关 true false 用于光伏驱动
     */
    private boolean ogMaster;//离网逆变器才返回
    /**
     * 是否加密
     */
    private boolean isLocalEncrypt;
    /**
     * 是否本地网关
     */
    private boolean isLocalGateWay;
    /**
     * 住宅Id
     */
    private String homeId;
 
    /**
     * 使用mqtt的时候需要解密
     */
    private String aesKey;
    private String deviceId;
 
    /**
     * 毫米波sid
     */
    private String sid;
 
 
    private String spk = "";
 
 
    private String systemStatusDesc;//云端-状态
 
 
    private String hwVersion;//云端-软件版本号
    private String categorySecondName;//云端-设备类型(产品二级分类名称)
 
    /**
     * 设备来源(自定义:0=表示网关;1=表示平台)
     */
    private String src;
 
    //子网号/设备号
    private String addresses;
 
    //网关状态:1:待机,2:连接中,3:故障,4:运行,5:离线
    private int deviceStatus;
 
    private String powerPvNow;//发电功率
    private String totalElectricityPvToday;//今日发电量
    private String deviceType;
    private String outputActivePower;//逆变器输出有功功率
 
    public String getWorkStatusDesc() {
        return workStatusDesc==null?"":this.workStatusDesc;
    }
 
    public void setWorkStatusDesc(String workStatusDesc) {
        this.workStatusDesc = workStatusDesc;
    }
 
    private String workStatusDesc;//工作状态(负载中心设备)
 
    /**
     * 房间归属
     */
    private List<String> uids = new ArrayList<>();
 
    public boolean isOgMaster() {
        return ogMaster;
    }
 
    public void setOgMaster(boolean ogMaster) {
        this.ogMaster = ogMaster;
    }
    public List<String> getUids() {
        return uids;
    }
 
 
    public void setUids(List<String> uids) {
        this.uids = uids;
    }
 
    public String getSrc() {
        return src == null ? "" : this.src;
    }
 
    public void setSrc(String src) {
        this.src = src;
    }
 
    public String getAesKey() {
        return aesKey == null ? "" : aesKey;
    }
 
    public void setAesKey(@NonNull String aesKey) {
        this.aesKey = aesKey;
    }
 
    public String getDeviceId() {
        return deviceId == null ? "" : deviceId;
    }
 
    public void setDeviceId(@NonNull String deviceId) {
        this.deviceId = deviceId;
    }
 
    public boolean getOnline() {
        return online;
    }
 
    public void setOnline(boolean online) {
        this.online = online;
    }
 
    /**
     * 网关型号
     */
    public String getDevice_model() {
        return device_model == null ? "" : device_model;
    }
 
    /**
     * 网关型号
     */
    public void setDevice_model(String device_model) {
        this.device_model = device_model;
    }
 
    /**
     * 网关备注
     */
    public String getDevice_name() {
        if (TextUtils.isEmpty(device_name)) {
            return getDevice_model();
        } else {
 
        }
        return device_name;
    }
 
    /**
     * 模板匹配标记 wxr 自定义 2022-02-23 16:09:44
     */
    private boolean templateSettingFlag = false;
 
    public boolean isTemplateSettingFlag() {
        return templateSettingFlag;
    }
 
    public void setTemplateSettingFlag(boolean templateSettingFlag) {
        this.templateSettingFlag = templateSettingFlag;
    }
 
    private String templateAddr;
 
    public String getTemplateAddr() {
        return templateAddr == null ? "" : templateAddr;
    }
 
    public void setTemplateAddr(String templateAddr) {
        this.templateAddr = templateAddr;
    }
 
 
    /**
     * 网关备注
     */
    public void setDevice_name(String device_name) {
        this.device_name = device_name;
    }
 
    /**
     * 网关Mac
     *
     * @return
     */
    @NonNull
    public String getDevice_mac() {
        return TextUtils.isEmpty(device_mac) ? "" : device_mac;
    }
 
    /**
     * 网关Mac
     */
    public void setDevice_mac(String device_mac) {
        this.device_mac = device_mac;
    }
 
    /**
     * 网关Id
     */
    @NonNull
    public String getGatewayId() {
        return TextUtils.isEmpty(gatewayId) ? getOid() : gatewayId;
    }
 
    /**
     * 网关Id
     */
    public void setGatewayId(String gatewayId) {
        this.gatewayId = gatewayId;
    }
 
    /**
     * 网关类型
     */
    @NonNull
    public String getGatewayType() {
        return gatewayType == null ? gateway_type == null ? "" : gateway_type : gatewayType;
    }
 
    /**
     * 网关类型
     */
    public void setGatewayType(String gatewayType) {
        this.gatewayType = gatewayType;
    }
 
    @NonNull
    public String getGateway_type() {
        return gateway_type == null ? "" : gateway_type;
    }
 
    public void setGateway_type(String gateway_type) {
        this.gateway_type = gateway_type;
    }
 
    /**
     * 网关Oid
     */
    @NonNull
    public String getOid() {
        return TextUtils.isEmpty(oid) ? getDevice_mac() : oid;
    }
 
    /**
     * 网关Oid
     */
    public void setOid(String oid) {
        this.oid = oid;
    }
 
    /**
     * IP地址
     */
    @NonNull
    public String getIp_address() {
        return ip_address == null ? "" : ip_address;
    }
 
    /**
     * IP地址
     */
    public void setIp_address(String ip_address) {
        this.ip_address = ip_address;
    }
 
    /**
     * 连接的网关类型 LAN WIFI
     */
    @NonNull
    public String getAccess_mode() {
        return access_mode == null ? "" : access_mode;
    }
 
    /**
     * 连接的网关类型 LAN WIFI
     */
    public void setAccess_mode(String access_mode) {
        this.access_mode = access_mode;
    }
 
    /**
     * 是否主网关 true false
     */
    public String getMaster() {
        return master == null ? "" : master;
    }
 
    /**
     * 是否主网关 true false no_config
     */
    public void setMaster(String master) {
        this.master = master;
    }
 
    /**
     * 是否加密
     */
    public boolean getIsLocalEncrypt() {
        return isLocalEncrypt;
    }
 
    /**
     * 是否加密
     */
    public void setIsLocalEncrypt(boolean localEncrypt) {
        isLocalEncrypt = localEncrypt;
    }
 
    /**
     * 获取住宅Id
     */
    @NonNull
    public String getHomeId() {
        return homeId == null ? "" : homeId;
    }
 
    /**
     * 设置住宅Id
     */
    public void setHomeId(String homeId) {
        this.homeId = homeId;
    }
 
    /**
     * 获取毫米波sid
     *
     * @return sid
     */
    public String getSid() {
        return sid == null ? "" : this.sid;
    }
 
    /**
     * 设置毫米波sid
     */
    public void setSid(String sid) {
        this.sid = sid;
    }
 
    /**
     * 是否本地网关 true false
     */
    public void setIsLocalGateWay(boolean isLocalGateWay) {
        this.isLocalGateWay = isLocalGateWay;
    }
 
    /**
     * 获取网关是否本地网关
     */
    public boolean getIsLocalGateway() {
        return this.isLocalGateWay;
    }
 
 
    /*
     * 模板标记 wxr
     * */
    private boolean templateFlag = false;
 
    public boolean isLocalEncrypt() {
        return isLocalEncrypt;
    }
 
    public void setLocalEncrypt(boolean localEncrypt) {
        isLocalEncrypt = localEncrypt;
    }
 
 
    public String getSystemStatusDesc() {
        return systemStatusDesc == null ? "" : systemStatusDesc;
    }
 
 
    public void setSystemStatusDesc(String systemStatusDesc) {
        this.systemStatusDesc = systemStatusDesc;
    }
 
 
    public String getHwVersion() {
        return hwVersion == null ? "" : hwVersion;
    }
 
 
    public void setHwVersion(String hwVersion) {
        this.hwVersion = hwVersion;
    }
 
 
    public String getCategorySecondName() {
        return categorySecondName == null ? "" : categorySecondName;
    }
 
    public void setCategorySecondName(String categorySecondName) {
        this.categorySecondName = categorySecondName;
    }
 
 
    public String getAddresses() {
        return addresses == null ? "" : addresses;
    }
 
 
    public void setAddresses(String addresses) {
        this.addresses = addresses;
    }
 
 
    public int getDeviceStatus() {
        return deviceStatus;
    }
 
 
    public void setDeviceStatus(int deviceStatus) {
        this.deviceStatus = deviceStatus;
    }
 
 
    public String getPowerPvNow() {
        return powerPvNow == null ? "" : powerPvNow;
    }
 
 
    public void setPowerPvNow(String powerPvNow) {
        this.powerPvNow = powerPvNow;
    }
 
 
    public String getTotalElectricityPvToday() {
        return totalElectricityPvToday == null ? "" : totalElectricityPvToday;
    }
 
 
    public void setTotalElectricityPvToday(String totalElectricityPvToday) {
        this.totalElectricityPvToday = totalElectricityPvToday;
    }
 
 
    public String getSpk() {
        return spk == null ? "" : spk;
    }
 
 
    public void setSpk(String spk) {
        this.spk = spk;
    }
 
    public String getDeviceType() {
        return deviceType == null ? "" : deviceType;
    }
 
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
 
    public String getOutputActivePower() {
        return outputActivePower;
    }
 
    public void setOutputActivePower(String outputActivePower) {
        this.outputActivePower = outputActivePower;
    }
}