houzhongjian
2024-10-30 a28ca3f36d0ace05966a8c0fac1e4b5fe921f882
提交 | 用户 | 时间
ce910c 1 package com.netsdk.lib.structure;
H 2
3 import com.netsdk.lib.NetSDKLib;
4
5 import static com.netsdk.lib.NetSDKLib.NET_MAX_BATTERY_NUM;
6 import static com.netsdk.lib.NetSDKLib.NET_MAX_POWER_NUM;
7
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 }