houzhongjian
2024-11-06 7412dd652c0ac48c5a17b5d9b61d5d2a0f686137
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.structure;
H 2
3 import com.iailab.netsdk.lib.NetSDKLib;
4
5 import java.util.Arrays;
6
7412dd 7 import static com.iailab.netsdk.lib.constant.SDKStructureFieldLenth.MAX_ADDRESS_LEN;
H 8 import static com.iailab.netsdk.lib.constant.SDKStructureFieldLenth.MAX_PASSWORD_LEN;
149dd0 9
H 10 /**
11  * @author 47081
12  * @version 1.0
13  * @description 门禁基本配置
14  * @date 2021/2/7
15  */
16 public class CFG_ACCESS_GENERAL_INFO extends NetSDKLib.SdkStructure {
17   /** 开门音频文件路径 */
18   public byte[] szOpenDoorAudioPath = new byte[MAX_ADDRESS_LEN];
19   /** 关门音频文件路径 */
20   public byte[] szCloseDoorAudioPath = new byte[MAX_ADDRESS_LEN];
21   /** 有人音频文件路径 */
22   public byte[] szInUsedAuidoPath = new byte[MAX_ADDRESS_LEN];
23   /** 暂停使用音频文件路径 */
24   public byte[] szPauseUsedAudioPath = new byte[MAX_ADDRESS_LEN];
25   /** 门未关音频文件路径 */
26   public byte[] szNotClosedAudioPath = new byte[MAX_ADDRESS_LEN];
27   /** 等待提示音频文件路径 */
28   public byte[] szWaitingAudioPath = new byte[MAX_ADDRESS_LEN];
29   /** 开锁命令响应间隔时间,单位秒,取值10、15(默认值)、20 */
30   public int nUnlockReloadTime;
31   /** 开锁输出保持时间,单位秒,取值1、2(默认)、3、4、5、6、9、15。 */
32   public int nUnlockHoldTime;
33
34   // 能力,bool对应java中byte
35   public byte abProjectPassword;
36   public byte abAccessProperty;
37   public byte abABLockInfo;
38   public byte byReserved;
39
40   /** 工程密码 */
41   public byte[] szProjectPassword = new byte[MAX_PASSWORD_LEN];
7412dd 42   /** 门禁通道单双向配置,对应枚举{@link com.iailab.netsdk.lib.enumeration.CFG_ACCESS_PROPERTY_TYPE} */
149dd0 43   public int emAccessProperty;
H 44   /** AB互锁信息 */
45   public CFG_ABLOCK_INFO stuABLockInfo;
46   /** 胁迫密码 */
47   public byte[] szDuressPassword = new byte[MAX_PASSWORD_LEN];
48   /** 胁迫使能 */
49   public boolean bDuressEnable;
50   /** 是否启用个性化密码 */
51   public boolean bCustomPasswordEnable;
52   /** 公共密码 */
53   public byte[] szCommonPassword = new byte[MAX_PASSWORD_LEN];
54   /** 梯控高峰时间段, 值为CFG_ACCESS_TIMESCHEDULE_INFO配置的数组下标 */
55   public int nPeakTimeSection;
56   /** 是否为梯控高峰期, TRUE:高峰期, FALSE:平峰期 */
57   public boolean bPeakState;
58   /** 远程校验超时时间,单位:秒, 默认值:5秒,范围[1-15] */
59   public int nRemoteAuthTimeOut;
60   /** 楼层权限信息,每一个bit对应一个楼层,bit值1表示公共层,0表示权限楼层 */
61   public byte[] arrFloorPermission = new byte[64];
62   /** arrFloorPermission 数组个数 */
63   public int nFloorPermission;
64   /** 门通道控制闸机参数 */
65   public CFG_ACCESS_CONTROL_ASG stuAccessControlASG;
66   /** 门禁开门提示音 */
67   public CFG_ACCESS_VOICE stuAccessVoice;
68   /** 
69    * 门磁类型,参考{ @link EM_ACCESS_SENSOR_TYPE }
70    */
71   public int        emSensorType;                
72   /** 保留字节 */
73   public byte[]            szReserved= new byte[1120];        
74
75   @Override
76   public String toString() {
77     return "CFG_ACCESS_GENERAL_INFO{" +
78             "szOpenDoorAudioPath=" + Arrays.toString(szOpenDoorAudioPath) +
79             ", szCloseDoorAudioPath=" + Arrays.toString(szCloseDoorAudioPath) +
80             ", szInUsedAuidoPath=" + Arrays.toString(szInUsedAuidoPath) +
81             ", szPauseUsedAudioPath=" + Arrays.toString(szPauseUsedAudioPath) +
82             ", szNotClosedAudioPath=" + Arrays.toString(szNotClosedAudioPath) +
83             ", szWaitingAudioPath=" + Arrays.toString(szWaitingAudioPath) +
84             ", nUnlockReloadTime=" + nUnlockReloadTime +
85             ", nUnlockHoldTime=" + nUnlockHoldTime +
86             ", abProjectPassword=" + abProjectPassword +
87             ", abAccessProperty=" + abAccessProperty +
88             ", abABLockInfo=" + abABLockInfo +
89             ", byReserved=" + byReserved +
90             ", szProjectPassword=" + Arrays.toString(szProjectPassword) +
91             ", emAccessProperty=" + emAccessProperty +
92             ", stuABLockInfo=" + stuABLockInfo +
93             ", szDuressPassword=" + Arrays.toString(szDuressPassword) +
94             ", bDuressEnable=" + bDuressEnable +
95             ", bCustomPasswordEnable=" + bCustomPasswordEnable +
96             ", szCommonPassword=" + Arrays.toString(szCommonPassword) +
97             ", nPeakTimeSection=" + nPeakTimeSection +
98             ", bPeakState=" + bPeakState +
99             ", nRemoteAuthTimeOut=" + nRemoteAuthTimeOut +
100             ", arrFloorPermission=" + Arrays.toString(arrFloorPermission) +
101             ", nFloorPermission=" + nFloorPermission +
102             ", stuAccessControlASG=" + stuAccessControlASG +
103             ", stuAccessVoice=" + stuAccessVoice +
104             '}';
105   }
106 }