From 591aacee97f4a6486631c38a6b418e20b2c4109c Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 10 九月 2020 14:56:47 +0800
Subject: [PATCH] update

---
 device/include/netdisk.h |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/device/include/netdisk.h b/device/include/netdisk.h
index f92eeb4..b2b3fb6 100644
--- a/device/include/netdisk.h
+++ b/device/include/netdisk.h
@@ -28,18 +28,21 @@
 
 } Netdisk_DownloadRequest;
 
- 
+typedef struct DeviceInfo
+{
+    int startChannel;       //璧峰閫氶亾鍙�
+    int maxChannels;        //鏈�澶ч�氶亾鏁� 
+    
+} DeviceInfo;
 
 // 缃戠粶纭洏 鎶借薄绫�
 class Netdisk {
 private:
     std::string loginDataFile;
+   
 
 protected:
-    
-    int startChannel;       //璧峰閫氶亾鍙�
-    int maxChannels;        //鏈�澶ч�氶亾鏁�
-
+    DeviceInfo deviceInfo;
     std::string deviceType; //璁惧绫诲瀷
     std::string loginUUID;
     std::string username;   //鐢ㄦ埛鍚�
@@ -67,9 +70,7 @@
     virtual int downloadByTime(Netdisk_DownloadRequest &request, std::vector<std::string> *files) = 0;
 
 
-    int getStartChannel() {return startChannel;}
-
-    int getMaxChannels() {return maxChannels;}
+    DeviceInfo getDeviceInfo() {return deviceInfo;}
 
 };
 

--
Gitblit v1.8.0