Jay
2024-11-01 03e8aca3ad6201c0d74e00d4c8d7367cdaaa54f9
提交 | 用户 | 时间
ce910c 1 package com.netsdk.lib.structure;
H 2
3 import com.netsdk.lib.NetSDKLib;
4 import com.netsdk.lib.enumeration.EM_DOWNLOAD_FILE_TYPE;
5 import com.netsdk.lib.enumeration.EM_SUBCLASSID_TYPE;
6 import com.sun.jna.Pointer;
7
8 /**
9  * 批量下载文件 入参
10  * 接口 {@link NetSDKLib#CLIENT_DownLoadMultiFile}
11  * 出参 {@link NET_OUT_DOWNLOAD_MULTI_FILE}
12  *
13  * @author : 47040
14  * @since : Created in 2020/12/28 15:19
15  */
16 public class NET_IN_DOWNLOAD_MULTI_FILE extends NetSDKLib.SdkStructure {
17
18     public int dwSize;
19     /**
20      * 待下载文件数,emDownloadType为EM_DOWNLOAD_BY_FILENAME有效
21      */
22     public int nFileCount;
23     /**
24      * {@link NET_DOWNLOADFILE_INFO} 待下载文件信息,emDownloadType为 EM_DOWNLOAD_BY_FILENAME 时有效
25      * emDownloadType为EM_DOWNLOAD_BY_FILENAME有效
26      * 由用户申请内存,大小为 sizeof(NET_DOWNLOADFILE_INFO)*nFileCount
27      */
28     public Pointer pFileInfos;
29     /**
30      * 进度回调函数
31      */
32     public NetSDKLib.fMultiFileDownLoadPosCB cbPosCallBack;
33     /**
34      * 用户数据
35      */
36     public Pointer dwUserData;
37     /**
38      * {@link EM_DOWNLOAD_FILE_TYPE} 下载方式
39      */
40     public int emDownloadType;
41     /**
42      * 按查询条件下载: 下载条件数,emDownloadType为EM_DOWNLOAD_BY_CONDITION有效
43      */
44     public int nConditionCount;
45     /**
46      * {@link NET_DOWNLOAD_CONDITION_INFO}
47      * 下载条件,emDownloadType为EM_DOWNLOAD_BY_CONDITION有效
48      * 由用户申请内存,大小为sizeof(NET_DOWNLOAD_CONDITION_INFO)*nConditionCount
49      */
50     public Pointer pConditionInfos;
51     /**
52      * 从设备类型{@link EM_SUBCLASSID_TYPE}
53      */
54     public int emSubClass;
55     /**
56      * {@link NET_DOWNLOADFILE_OPTIONS_INFO}
57      * 待下载文件信息, 下载选项; emDownloadType为EM_DOWNLOAD_BY_FILENAME有效
58      */
59     public Pointer pFileOptions;
60
61     public NET_IN_DOWNLOAD_MULTI_FILE(){
62         dwSize = this.size();
63     }
64 }