648540858
2024-02-22 f6c48588daba63846a9e70ef10fe7af2fceab035
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
package com.genersoft.iot.vmp.gb28181.bean;
 
 
import io.swagger.v3.oas.annotations.media.Schema;
 
/**
 * 国标设备/平台
 * @author lin
 */
@Schema(description = "国标设备/平台")
public class Device {
 
    /**
     * 设备国标编号
     */
    @Schema(description = "设备国标编号")
    private String deviceId;
 
    /**
     * 设备名
     */
    @Schema(description = "名称")
    private String name;
    
    /**
     * 生产厂商
     */
    @Schema(description = "生产厂商")
    private String manufacturer;
    
    /**
     * 型号
     */
    @Schema(description = "型号")
    private String model;
    
    /**
     * 固件版本
     */
    @Schema(description = "固件版本")
    private String firmware;
 
    /**
     * 传输协议
     * UDP/TCP
     */
    @Schema(description = "传输协议(UDP/TCP)")
    private String transport;
 
    /**
     * 数据流传输模式
     * UDP:udp传输
     * TCP-ACTIVE:tcp主动模式
     * TCP-PASSIVE:tcp被动模式
     */
    @Schema(description = "数据流传输模式")
    private String streamMode;
 
    /**
     * wan地址_ip
     */
    @Schema(description = "IP")
    private String  ip;
 
    /**
     * wan地址_port
     */
    @Schema(description = "端口")
    private int port;
 
    /**
     * wan地址
     */
    @Schema(description = "wan地址")
    private String  hostAddress;
    
    /**
     * 在线
     */
    @Schema(description = "是否在线,true为在线,false为离线")
    private boolean onLine;
 
 
    /**
     * 注册时间
     */
    @Schema(description = "注册时间")
    private String registerTime;
 
 
    /**
     * 心跳时间
     */
    @Schema(description = "心跳时间")
    private String keepaliveTime;
 
 
    /**
     * 心跳间隔
     */
    @Schema(description = "心跳间隔")
    private int keepaliveIntervalTime;
 
    /**
     * 通道个数
     */
    @Schema(description = "通道个数")
    private int channelCount;
 
    /**
     * 注册有效期
     */
    @Schema(description = "注册有效期")
    private int expires;
 
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;
 
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;
 
    /**
     * 设备使用的媒体id, 默认为null
     */
    @Schema(description = "设备使用的媒体id, 默认为null")
    private String mediaServerId;
 
    /**
     * 字符集, 支持 UTF-8 与 GB2312
     */
    @Schema(description = "符集, 支持 UTF-8 与 GB2312")
    private String charset ;
 
    /**
     * 目录订阅周期,0为不订阅
     */
    @Schema(description = "目录订阅周期,o为不订阅")
    private int subscribeCycleForCatalog;
 
    /**
     * 移动设备位置订阅周期,0为不订阅
     */
    @Schema(description = "移动设备位置订阅周期,0为不订阅")
    private int subscribeCycleForMobilePosition;
 
    /**
     * 移动设备位置信息上报时间间隔,单位:秒,默认值5
     */
    @Schema(description = "移动设备位置信息上报时间间隔,单位:秒,默认值5")
    private int mobilePositionSubmissionInterval = 5;
 
    /**
     * 报警订阅周期,0为不订阅
     */
    @Schema(description = "报警心跳时间订阅周期,0为不订阅")
    private int subscribeCycleForAlarm;
 
    /**
     * 是否开启ssrc校验,默认关闭,开启可以防止串流
     */
    @Schema(description = "是否开启ssrc校验,默认关闭,开启可以防止串流")
    private boolean ssrcCheck = false;
 
    /**
     * 地理坐标系, 目前支持 WGS84,GCJ02
     */
    @Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
    private String geoCoordSys;
 
    @Schema(description = "密码")
    private String password;
 
    @Schema(description = "收流IP")
    private String sdpIp;
 
    @Schema(description = "SIP交互IP(设备访问平台的IP)")
    private String localIp;
 
    @Schema(description = "是否作为消息通道")
    private boolean asMessageChannel;
 
    @Schema(description = "设备注册的事务信息")
    private SipTransactionInfo sipTransactionInfo;
 
 
 
 
    public String getDeviceId() {
        return deviceId;
    }
 
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getManufacturer() {
        return manufacturer;
    }
 
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }
 
    public String getModel() {
        return model;
    }
 
    public void setModel(String model) {
        this.model = model;
    }
 
    public String getFirmware() {
        return firmware;
    }
 
    public void setFirmware(String firmware) {
        this.firmware = firmware;
    }
 
    public String getTransport() {
        return transport;
    }
 
    public void setTransport(String transport) {
        this.transport = transport;
    }
 
    public String getStreamMode() {
        return streamMode;
    }
 
    public Integer getStreamModeForParam() {
        if (streamMode == null) {
            return 0;
        }
        if (streamMode.equalsIgnoreCase("UDP")) {
            return 0;
        }else if (streamMode.equalsIgnoreCase("TCP-PASSIVE")) {
            return 1;
        }else if (streamMode.equalsIgnoreCase("TCP-ACTIVE")) {
            return 2;
        }
        return 0;
    }
 
    public void setStreamMode(String streamMode) {
        this.streamMode = streamMode;
    }
 
    public String getIp() {
        return ip;
    }
 
    public void setIp(String ip) {
        this.ip = ip;
    }
 
    public int getPort() {
        return port;
    }
 
    public void setPort(int port) {
        this.port = port;
    }
 
    public String getHostAddress() {
        return hostAddress;
    }
 
    public void setHostAddress(String hostAddress) {
        this.hostAddress = hostAddress;
    }
 
    public boolean isOnLine() {
        return onLine;
    }
 
    public void setOnLine(boolean onLine) {
        this.onLine = onLine;
    }
 
    public int getChannelCount() {
        return channelCount;
    }
 
    public void setChannelCount(int channelCount) {
        this.channelCount = channelCount;
    }
 
    public String getRegisterTime() {
        return registerTime;
    }
 
    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }
 
    public String getKeepaliveTime() {
        return keepaliveTime;
    }
 
    public void setKeepaliveTime(String keepaliveTime) {
        this.keepaliveTime = keepaliveTime;
    }
 
    public int getExpires() {
        return expires;
    }
 
    public void setExpires(int expires) {
        this.expires = expires;
    }
 
    public String getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
 
    public String getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
 
    public String getMediaServerId() {
        return mediaServerId;
    }
 
    public void setMediaServerId(String mediaServerId) {
        this.mediaServerId = mediaServerId;
    }
 
    public String getCharset() {
        return charset;
    }
 
    public void setCharset(String charset) {
        this.charset = charset;
    }
 
    public int getSubscribeCycleForCatalog() {
        return subscribeCycleForCatalog;
    }
 
    public void setSubscribeCycleForCatalog(int subscribeCycleForCatalog) {
        this.subscribeCycleForCatalog = subscribeCycleForCatalog;
    }
 
    public int getSubscribeCycleForMobilePosition() {
        return subscribeCycleForMobilePosition;
    }
 
    public void setSubscribeCycleForMobilePosition(int subscribeCycleForMobilePosition) {
        this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
    }
 
    public int getMobilePositionSubmissionInterval() {
        return mobilePositionSubmissionInterval;
    }
 
    public void setMobilePositionSubmissionInterval(int mobilePositionSubmissionInterval) {
        this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
    }
 
    public int getSubscribeCycleForAlarm() {
        return subscribeCycleForAlarm;
    }
 
    public void setSubscribeCycleForAlarm(int subscribeCycleForAlarm) {
        this.subscribeCycleForAlarm = subscribeCycleForAlarm;
    }
 
    public boolean isSsrcCheck() {
        return ssrcCheck;
    }
 
    public void setSsrcCheck(boolean ssrcCheck) {
        this.ssrcCheck = ssrcCheck;
    }
 
    public String getGeoCoordSys() {
        return geoCoordSys;
    }
 
    public void setGeoCoordSys(String geoCoordSys) {
        this.geoCoordSys = geoCoordSys;
    }
 
    public String getPassword() {
        return password;
    }
 
    public void setPassword(String password) {
        this.password = password;
    }
 
    public String getSdpIp() {
        return sdpIp;
    }
 
    public void setSdpIp(String sdpIp) {
        this.sdpIp = sdpIp;
    }
 
    public String getLocalIp() {
        return localIp;
    }
 
    public void setLocalIp(String localIp) {
        this.localIp = localIp;
    }
 
    public int getKeepaliveIntervalTime() {
        return keepaliveIntervalTime;
    }
 
    public void setKeepaliveIntervalTime(int keepaliveIntervalTime) {
        this.keepaliveIntervalTime = keepaliveIntervalTime;
    }
 
    public boolean isAsMessageChannel() {
        return asMessageChannel;
    }
 
    public void setAsMessageChannel(boolean asMessageChannel) {
        this.asMessageChannel = asMessageChannel;
    }
 
    public SipTransactionInfo getSipTransactionInfo() {
        return sipTransactionInfo;
    }
 
    public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
        this.sipTransactionInfo = sipTransactionInfo;
    }
 
}