From 0de4cf306d8e13fd57b3e04bfb81362a10f12a4d Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期一, 10 七月 2023 16:10:53 +0800
Subject: [PATCH] feature UI补全

---
 EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs |  196 +++++++++++++++++++-----------------------------
 1 files changed, 78 insertions(+), 118 deletions(-)

diff --git a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
index 9f04503..b845f1b 100644
--- a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
+++ b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
@@ -1,143 +1,103 @@
-锘縰sing System;
-using Foundation;
+锘縰sing Foundation;
 using ObjCRuntime;
 
 namespace EZSDK.IOS
 {
-	// @interface EZDeviceInfo : NSObject
-	[BaseType(typeof(NSObject))]
-	interface EZDeviceInfo
-	{
-		// @property (nonatomic, strong) NSArray * cameraInfo;
-		[Export("cameraInfo", ArgumentSemantic.Strong)]
-		//[Verify(StronglyTypedNSArray)]
-		NSArray CameraInfo { get; set; }
+    // @protocol EZSDKDelegate <NSObject>
+    [Protocol, Model(AutoGeneratedName = true)]
+    [BaseType(typeof(NSObject))]
+    interface EZSDKDelegate
+    {
+        // @required -(void)addDeviceSuccessed:(NSString *)deviceSerial;
+        [Abstract]
+        [Export("addDeviceSuccessed:")]
+        void AddDeviceSuccessed(string deviceSerial);
+    }
 
-		// @property (nonatomic) NSInteger cameraNum;
-		[Export("cameraNum")]
-		int CameraNum { get; set; }
+    // @interface EZSDK : NSObject
+    [BaseType(typeof(NSObject))]
+    interface EZSDK
+    {
+        [Wrap("WeakDelegate")]
+        EZSDKDelegate Delegate { get; set; }
 
-		// @property (nonatomic) NSInteger defence;
-		[Export("defence")]
-		int Defence { get; set; }
+        // @property (nonatomic, weak) id<EZSDKDelegate> delegate;
+        [NullAllowed, Export("delegate", ArgumentSemantic.Weak)]
+        NSObject WeakDelegate { get; set; }
 
-		// @property (nonatomic) NSInteger detectorNum;
-		[Export("detectorNum")]
-		int DetectorNum { get; set; }
+        // @property (nonatomic, strong) NSArray * connectTipModels;
+        [Export("connectTipModels", ArgumentSemantic.Strong)]
+        // [Verify(StronglyTypedNSArray)]
+        NSObject[] ConnectTipModels { get; set; }
 
-		// @property (nonatomic, strong) NSArray * detectorInfo;
-		[Export("detectorInfo", ArgumentSemantic.Strong)]
-		//[Verify(StronglyTypedNSArray)]
-		NSArray DetectorInfo { get; set; }
+        // +(instancetype)sharedInstance;
+        [Static]
+        [Export("sharedInstance")]
+        EZSDK SharedInstance();
 
-		// @property (copy, nonatomic) NSString * deviceCover;
-		[Export("deviceCover")]
-		string DeviceCover { get; set; }
+        // -(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
+        [Export("initLibWithAppKey:globalAppKey:")]
+        bool InitLibWithAppKey(string appKey, string globalAppKey);
 
-		// @property (copy, nonatomic) NSString * deviceName;
-		[Export("deviceName")]
-		string DeviceName { get; set; }
+        // -(void)setEZAccessToken:(NSString *)accessToken;
+        [Export("setEZAccessToken:")]
+        void SetEZAccessToken(string accessToken);
 
-		// @property (copy, nonatomic) NSString * deviceSerial;
-		[Export("deviceSerial")]
-		string DeviceSerial { get; set; }
+        // -(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken;
+        [Export("setHDlAccessToken:refreshToken:")]
+        void SetHDlAccessToken(string accessToken, string refreshToken);
 
-		// @property (copy, nonatomic) NSString * deviceType;
-		[Export("deviceType")]
-		string DeviceType { get; set; }
+        // -(void)setRequestHttpsHostAndPlatform:(NSString *)requestHttpsHost platform:(int)platform homeId:(NSString *)homeId;
+        [Export("setRequestHttpsHostAndPlatform:platform:homeId:")]
+        void SetRequestHttpsHostAndPlatform(string requestHttpsHost, int platform, string homeId);
 
-		// @property (copy, nonatomic) NSString * deviceVersion;
-		[Export("deviceVersion")]
-		string DeviceVersion { get; set; }
+        // -(void)go2EZvizMonitor;
+        [Export("go2EZvizMonitor")]
+        void Go2EZvizMonitor();
 
-		// @property (nonatomic) BOOL isEncrypt;
-		[Export("isEncrypt")]
-		bool IsEncrypt { get; set; }
+        // -(void)toEZDeviceListViewWithFilterTypes:(NSArray *)filterTepes;
+        [Export("toEZDeviceListViewWithFilterTypes:")]
+        // [Verify(StronglyTypedNSArray)]
+        void ToEZDeviceListViewWithFilterTypes(NSObject[] filterTepes);
 
-		// @property (nonatomic) NSInteger status;
-		[Export("status")]
-		nint Status { get; set; }
+        // -(void)addEzvizMonitor;
+        [Export("addEzvizMonitor")]
+        void AddEzvizMonitor();
 
-		// @property (nonatomic) NSInteger isSupportTalk;
-		[Export("isSupportTalk")]
-		int IsSupportTalk { get; set; }
+        // -(void)addEzvizMonitorWithDeviceType:(NSString *)deviceType;
+        [Export("addEzvizMonitorWithDeviceType:")]
+        void AddEzvizMonitorWithDeviceType(string deviceType);
 
-		// @property (nonatomic) BOOL isSupportPTZ;
-		[Export("isSupportPTZ")]
-		bool IsSupportPTZ { get; set; }
+        // -(void)Play:(id)deviceInfo;
+        [Export("Play:")]
+        void Play(NSObject deviceInfo);
 
-		// @property (nonatomic) BOOL isSupportZoom;
-		[Export("isSupportZoom")]
-		bool IsSupportZoom { get; set; }
+        // -(void)Play:(id)deviceInfo showCallout:(BOOL)isShow;
+        [Export("Play:showCallout:")]
+        void Play(NSObject deviceInfo, bool isShow);
 
-		// @property (nonatomic) BOOL isSupportAudioOnOff;
-		[Export("isSupportAudioOnOff")]
-		bool IsSupportAudioOnOff { get; set; }
+        // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial;
+        [Export("PlayWithDeviceSerial:")]
+        void PlayWithDeviceSerial(string deviceSerial);
 
-		// @property (nonatomic) BOOL isSupportMirrorCenter;
-		[Export("isSupportMirrorCenter")]
-		bool IsSupportMirrorCenter { get; set; }
+        // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType;
+        [Export("PlayWithDeviceSerial:deviceId:deviceType:")]
+        void PlayWithDeviceSerial(string deviceSerial, string deviceId, string deviceType);
 
-		// @property (nonatomic) BOOL isSupportSoundWave;
-		[Export("isSupportSoundWave")]
-		bool IsSupportSoundWave { get; set; }
+        // -(void)setting:(id)deviceInfo;
+        [Export("setting:")]
+        void Setting(NSObject deviceInfo);
 
-		// @property (copy, nonatomic) NSString * category;
-		[Export("category")]
-		string Category { get; set; }
+        // -(void)playBackVideo:(id)deviceInfo;
+        [Export("playBackVideo:")]
+        void PlayBackVideo(NSObject deviceInfo);
 
-		// @property (nonatomic, strong) NSDate * addTime;
-		[Export("addTime", ArgumentSemantic.Strong)]
-		NSDate AddTime { get; set; }
-	}
+        // -(void)toTemPassView:(NSString *)deviceId;
+        [Export("toTemPassView:")]
+        void ToTemPassView(string deviceId);
 
-	// @interface EZSDK : NSObject
-	[BaseType(typeof(NSObject))]
-	interface EZSDK
-	{
-		// +(instancetype)sharedInstance;
-		[Static]
-		[Export("sharedInstance")]
-		EZSDK SharedInstance();
-
-		// -(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
-		[Export("initLibWithAppKey:globalAppKey:")]
-		bool InitLibWithAppKey(string appKey, string globalAppKey);
-
-		// -(void)setEZAccessToken:(NSString *)accessToken;
-		[Export("setEZAccessToken:")]
-		void SetEZAccessToken(string accessToken);
-
-		// -(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken;
-		[Export("setHDlAccessToken:refreshToken:")]
-		void SetHDlAccessToken(string accessToken, string refreshToken);
-
-		// -(void)setRequestHttpsHostAndPlatform:(NSString *)requestHttpsHost platform:(int)platform homeId:(NSString *)homeId;
-		[Export("setRequestHttpsHostAndPlatform:platform:homeId:")]
-		void SetRequestHttpsHostAndPlatform(string requestHttpsHost, int platform, string homeId);
-
-		// -(void)go2EZvizMonitor;
-		[Export("go2EZvizMonitor")]
-		void Go2EZvizMonitor();
-
-		// -(void)addEzvizMonitor;
-		[Export("addEzvizMonitor")]
-		void AddEzvizMonitor();
-
-		// -(void)Play:(EZDeviceInfo *)deviceInfo;
-		[Export("Play:")]
-		void Play(EZDeviceInfo deviceInfo);
-
-		// -(void)PlayWithDeviceSerial:(NSString *)deviceSerial;
-		[Export("PlayWithDeviceSerial:")]
-		void PlayWithDeviceSerial(string deviceSerial);
-
-		// -(void)setting:(EZDeviceInfo *)deviceInfo;
-		[Export("setting:")]
-		void Setting(EZDeviceInfo deviceInfo);
-
-		// -(void)playBackVideo:(EZDeviceInfo *)deviceInfo;
-		[Export("playBackVideo:")]
-		void PlayBackVideo(EZDeviceInfo deviceInfo);
-	}
+        // -(void)toDeviceMsgListView:(NSString *)deviceId;
+        [Export("toDeviceMsgListView:")]
+        void ToDeviceMsgListView(string deviceId);
+    }
 }

--
Gitblit v1.8.0