houzhongjian
2024-11-06 7412dd652c0ac48c5a17b5d9b61d5d2a0f686137
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.structure;
H 2
3 import com.iailab.netsdk.lib.NetSDKLib;
4 import com.iailab.netsdk.lib.enumeration.NET_EM_CFG_OPERATE_TYPE;
5 import com.sun.jna.Pointer;
6 import com.sun.jna.ptr.IntByReference;
7
8 import java.util.Arrays;
9
10 /**
11  * @author 47081
12  * @version 1.0
13  * @description 广告禁用时段配置
14  * 对应的枚举值{@link NET_EM_CFG_OPERATE_TYPE#NET_EM_CFG_FORBIDDEN_ADVERT_PLAY}
15  * * 调用的接口 {@link NetSDKLib#CLIENT_GetConfig(NetSDKLib.LLong, int, int, Pointer, int, int, Pointer)}和
16  * * {@link NetSDKLib#CLIENT_SetConfig(NetSDKLib.LLong, int, int, Pointer, int, int, IntByReference, Pointer)}
17  * @date 2020/9/10
18  */
19 public class NET_CFG_FORBIDDEN_ADVERT_PLAY extends NetSDKLib.SdkStructure {
20     /**
21      * 结构体大小
22      */
23     public int dwSize;
24     /**
25      * 广告配置时间段个数
26      */
27     public int nAdvertNum;
28     /**
29      * 广告禁用时段配置信息
30      */
31     public NET_CFG_FORBIDDEN_ADVERT_PLAY_INFO[] stuAdvertInfo = (NET_CFG_FORBIDDEN_ADVERT_PLAY_INFO[]) new NET_CFG_FORBIDDEN_ADVERT_PLAY_INFO().toArray(8);
32
33     public NET_CFG_FORBIDDEN_ADVERT_PLAY() {
34         this.dwSize = this.size();
35     }
36
37     @Override
38     public String toString() {
39         return "NET_CFG_FORBIDDEN_ADVERT_PLAY{" +
40                 "dwSize=" + dwSize +
41                 ", nAdvertNum=" + nAdvertNum +
42                 ", stuAdvertInfo=" + Arrays.toString(stuAdvertInfo) +
43                 '}';
44     }
45 }