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
package com.netsdk.lib.structure;
 
import com.netsdk.lib.NetSDKLib;
 
import static com.netsdk.lib.NetSDKLib.NET_MAX_BATTERY_NUM;
import static com.netsdk.lib.NetSDKLib.NET_MAX_POWER_NUM;
 
/**
 * className:NET_POWER_STATUS
 * description:
 * author:251589
 * createTime:2021/2/25 16:04
 *
 * @version v1.0
 */
 
public class NET_POWER_STATUS extends NetSDKLib.SdkStructure {
    /**
     * dwSize;
     */
    public int dwSize;
    /**
     *  查询是否成功
     */
    public int bEnable;
 
    /**
     *  电源数量
     */
    public int nCount;
 
    /**
     *  电源状态
     */
    public NET_POWER_INFO[] stuPowers = (NET_POWER_INFO[]) new NET_POWER_INFO().toArray(NET_MAX_POWER_NUM);
    /**
     *  电池数量
     */
    public int nBatteryNum;
 
    /**
     *  电池状态
     */
    public NET_BATTERY_INFO[] stuBatteries = (NET_BATTERY_INFO[]) new NET_BATTERY_INFO().toArray(NET_MAX_BATTERY_NUM);
    public NET_POWER_STATUS(){
        this.dwSize = this.size();
        for (int i = 0; i < stuBatteries.length; i++) {
            stuBatteries[i] = new NET_BATTERY_INFO();
        }
        for (int i = 0; i < stuPowers.length; i++) {
            stuPowers[i] = new NET_POWER_INFO();
        }
    }
}