From 3698c13aba988cd3e41b91b255e1c682c057e565 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期四, 23 三月 2023 11:49:58 +0800
Subject: [PATCH] 1.新增历史记录相关页面及功能 2.修改配网为热点配网 3.设备列表增加过滤门锁功能 4.增加添加设备通知功能

---
 EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs |   80 ++++++++++++++++++++++++++++++----------
 1 files changed, 60 insertions(+), 20 deletions(-)

diff --git a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
index 2d0efaa..0db1f41 100644
--- a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
+++ b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
@@ -1,54 +1,94 @@
-锘縰sing System;
-
+锘縰sing Foundation;
 using ObjCRuntime;
-using Foundation;
-using UIKit;
 
 namespace EZSDK.IOS
 {
+	// @protocol EZSDKDelegate <NSObject>
+	[Protocol, Model(AutoGeneratedName = true)]
+	[BaseType(typeof(NSObject))]
+	interface EZSDKDelegate
+	{
+		// @required -(void)addDeviceSuccessed;
+		[Abstract]
+		[Export("addDeviceSuccessed")]
+		void AddDeviceSuccessed();
+	}
+
 	// @interface EZSDK : NSObject
 	[BaseType(typeof(NSObject))]
 	interface EZSDK
 	{
-		// +(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
+		[Wrap("WeakDelegate")]
+		EZSDKDelegate Delegate { get; set; }
+
+		// @property (nonatomic, weak) id<EZSDKDelegate> delegate;
+		[NullAllowed, Export("delegate", ArgumentSemantic.Weak)]
+		NSObject WeakDelegate { get; set; }
+
+		// +(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;
-		[Static]
+		// -(void)setEZAccessToken:(NSString *)accessToken;
 		[Export("setEZAccessToken:")]
 		void SetEZAccessToken(string accessToken);
 
-		// +(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken;
-		[Static]
+		// -(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken;
 		[Export("setHDlAccessToken:refreshToken:")]
 		void SetHDlAccessToken(string accessToken, string refreshToken);
 
-		// +(void)go2EZvizMonitor;
-		[Static]
+		// -(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;
-		[Static]
+		// -(void)toEZDeviceListViewWithFilterTypes:(NSArray *)filterTepes;
+		[Export("toEZDeviceListViewWithFilterTypes:")]
+		//[Verify(StronglyTypedNSArray)]
+		void ToEZDeviceListViewWithFilterTypes(NSObject[] filterTepes);
+
+		// -(void)addEzvizMonitor;
 		[Export("addEzvizMonitor")]
 		void AddEzvizMonitor();
 
-		// +(void)Play:(NSObject *)deviceInfo;
-		[Static]
+		// -(void)addEzvizMonitorWithDeviceType:(NSString *)deviceType;
+		[Export("addEzvizMonitorWithDeviceType:")]
+		void AddEzvizMonitorWithDeviceType(string deviceType);
+
+		// -(void)Play:(id)deviceInfo;
 		[Export("Play:")]
 		void Play(NSObject deviceInfo);
 
-		// +(void)setting:(NSObject *)deviceInfo;
-		[Static]
+		// -(void)PlayWithDeviceSerial:(NSString *)deviceSerial;
+		[Export("PlayWithDeviceSerial:")]
+		void PlayWithDeviceSerial(string deviceSerial);
+
+		// -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType;
+		[Export("PlayWithDeviceSerial:deviceId:deviceType:")]
+		void PlayWithDeviceSerial(string deviceSerial, string deviceId, string deviceType);
+
+		// -(void)setting:(id)deviceInfo;
 		[Export("setting:")]
 		void Setting(NSObject deviceInfo);
 
-		// +(void)playBackVideo:(NSObject *)deviceInfo;
-		[Static]
+		// -(void)playBackVideo:(id)deviceInfo;
 		[Export("playBackVideo:")]
 		void PlayBackVideo(NSObject deviceInfo);
+
+		// -(void)toTemPassView:(NSString *)deviceId;
+		[Export("toTemPassView:")]
+		void ToTemPassView(string deviceId);
+
+		// -(void)toDeviceMsgListView:(NSString *)deviceId;
+		[Export("toDeviceMsgListView:")]
+		void ToDeviceMsgListView(string deviceId);
 	}
 }
-

--
Gitblit v1.8.0