潘志宝
2024-11-28 231897591c909b164defebfdb5936387ec2807d0
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.structure;
H 2
3 import com.iailab.netsdk.lib.NetSDKLib;
4
7412dd 5 import static com.iailab.netsdk.lib.NetSDKLib.NET_MAX_BATTERY_NUM;
H 6 import static com.iailab.netsdk.lib.NetSDKLib.NET_MAX_POWER_NUM;
149dd0 7
H 8 /**
9  * className:NET_POWER_STATUS
10  * description:
11  * author:251589
12  * createTime:2021/2/25 16:04
13  *
14  * @version v1.0
15  */
16
17 public class NET_POWER_STATUS extends NetSDKLib.SdkStructure {
18     /**
19      * dwSize;
20      */
21     public int dwSize;
22     /**
23      *  查询是否成功
24      */
25     public int bEnable;
26
27     /**
28      *  电源数量
29      */
30     public int nCount;
31
32     /**
33      *  电源状态
34      */
35     public NET_POWER_INFO[] stuPowers = (NET_POWER_INFO[]) new NET_POWER_INFO().toArray(NET_MAX_POWER_NUM);
36     /**
37      *  电池数量
38      */
39     public int nBatteryNum;
40
41     /**
42      *  电池状态
43      */
44     public NET_BATTERY_INFO[] stuBatteries = (NET_BATTERY_INFO[]) new NET_BATTERY_INFO().toArray(NET_MAX_BATTERY_NUM);
45     public NET_POWER_STATUS(){
46         this.dwSize = this.size();
47         for (int i = 0; i < stuBatteries.length; i++) {
48             stuBatteries[i] = new NET_BATTERY_INFO();
49         }
50         for (int i = 0; i < stuPowers.length; i++) {
51             stuPowers[i] = new NET_POWER_INFO();
52         }
53     }
54 }