提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.sun.jna.Pointer; |
|
5 |
|
|
6 |
/** |
|
7 |
* @author 251823 |
|
8 |
* @description 设置布防模式 |
|
9 |
* 输出参数。此时CLIENT_SetAlarmRegionInfo的emType参数为NET_EM_SET_ALARMREGION_INFO_ARMMODE |
|
10 |
* @date 2023/03/15 16:26:00 |
|
11 |
*/ |
|
12 |
public class NET_OUT_SET_ALARMMODE extends NetSDKLib.SdkStructure { |
|
13 |
/** |
|
14 |
* 结构体大小 |
|
15 |
*/ |
|
16 |
public int dwSize; |
|
17 |
/** |
|
18 |
* 布防结果 0:成功 1:失败 |
|
19 |
*/ |
|
20 |
public int nArmResult; |
|
21 |
/** |
|
22 |
* 布防失败的区域个数 |
|
23 |
*/ |
|
24 |
public int nFailedAreaRet; |
|
25 |
/** |
|
26 |
* 布防失败的细节 |
|
27 |
*/ |
|
28 |
public ARM_FAILED_DETAIL[] stuFailedDetail = new ARM_FAILED_DETAIL[8]; |
|
29 |
/** |
|
30 |
* 布防失败个数, 最大值为64 |
|
31 |
*/ |
|
32 |
public int nFailedDetailNum; |
|
33 |
/** |
|
34 |
* 布防失败的细节扩展字段 布防个数大于8个使用此字段,指针对应结构体{ @link ARM_FAILED_DETAIL_EX}数组 |
|
35 |
*/ |
|
36 |
public Pointer pstuFailedDetailEx; |
|
37 |
/** |
|
38 |
* 异常设备信息个数 |
|
39 |
*/ |
|
40 |
public int nDeviceFaultNum; |
|
41 |
/** |
|
42 |
* 设备异常信息,最大支持256个 |
|
43 |
*/ |
|
44 |
public NET_DEVICE_FAULT_INFO[] stuDeviceFault = new NET_DEVICE_FAULT_INFO[256]; |
|
45 |
|
|
46 |
public NET_OUT_SET_ALARMMODE() { |
|
47 |
for (int i = 0; i < stuFailedDetail.length; i++) { |
|
48 |
stuFailedDetail[i] = new ARM_FAILED_DETAIL(); |
|
49 |
} |
|
50 |
for (int i = 0; i < stuDeviceFault.length; i++) { |
|
51 |
stuDeviceFault[i] = new NET_DEVICE_FAULT_INFO(); |
|
52 |
} |
|
53 |
this.dwSize = this.size(); |
|
54 |
} |
|
55 |
} |