From 48c5a2c66c549d26fecadc6d2dad1924fdd1cc8b Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期四, 27 七月 2023 13:52:08 +0800 Subject: [PATCH] bugfix 猫眼呼叫问题修复 --- EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs | 164 ++++++++++++++++++++++++++++-------------------------- 1 files changed, 86 insertions(+), 78 deletions(-) diff --git a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs index b845f1b..9219806 100644 --- a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs +++ b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs @@ -1,103 +1,111 @@ -锘縰sing Foundation; +using Foundation; using ObjCRuntime; namespace EZSDK.IOS { - // @protocol EZSDKDelegate <NSObject> - [Protocol, Model(AutoGeneratedName = true)] - [BaseType(typeof(NSObject))] - interface EZSDKDelegate - { - // @required -(void)addDeviceSuccessed:(NSString *)deviceSerial; - [Abstract] - [Export("addDeviceSuccessed:")] - void AddDeviceSuccessed(string deviceSerial); - } + // @protocol EZSDKDelegate <NSObject> + [Protocol, Model (AutoGeneratedName = true)] + [BaseType (typeof(NSObject))] + interface EZSDKDelegate + { + // @required -(void)addDeviceSuccessed:(NSString *)deviceSerial; + [Abstract] + [Export ("addDeviceSuccessed:")] + void AddDeviceSuccessed (string deviceSerial); + } - // @interface EZSDK : NSObject - [BaseType(typeof(NSObject))] - interface EZSDK - { - [Wrap("WeakDelegate")] - EZSDKDelegate Delegate { get; set; } + // @interface EZSDK : NSObject + [BaseType (typeof(NSObject))] + interface EZSDK + { + [Wrap ("WeakDelegate")] + EZSDKDelegate Delegate { get; set; } - // @property (nonatomic, weak) id<EZSDKDelegate> delegate; - [NullAllowed, Export("delegate", ArgumentSemantic.Weak)] - NSObject WeakDelegate { get; set; } + // @property (nonatomic, weak) id<EZSDKDelegate> delegate; + [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] + NSObject WeakDelegate { get; set; } - // @property (nonatomic, strong) NSArray * connectTipModels; - [Export("connectTipModels", ArgumentSemantic.Strong)] - // [Verify(StronglyTypedNSArray)] - NSObject[] ConnectTipModels { get; set; } + // @property (nonatomic, strong) NSArray * connectTipModels; + [Export ("connectTipModels", ArgumentSemantic.Strong)] + //[Verify (StronglyTypedNSArray)] + NSObject[] ConnectTipModels { get; set; } - // +(instancetype)sharedInstance; - [Static] - [Export("sharedInstance")] - EZSDK SharedInstance(); + // +(instancetype)sharedInstance; + [Static] + [Export ("sharedInstance")] + EZSDK SharedInstance (); - // -(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey; - [Export("initLibWithAppKey:globalAppKey:")] - bool InitLibWithAppKey(string appKey, string globalAppKey); + // -(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)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)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)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)go2EZvizMonitor; + [Export ("go2EZvizMonitor")] + void Go2EZvizMonitor (); - // -(void)toEZDeviceListViewWithFilterTypes:(NSArray *)filterTepes; - [Export("toEZDeviceListViewWithFilterTypes:")] - // [Verify(StronglyTypedNSArray)] - void ToEZDeviceListViewWithFilterTypes(NSObject[] filterTepes); + // -(void)toEZDeviceListViewWithFilterTypes:(NSArray *)filterTepes; + [Export ("toEZDeviceListViewWithFilterTypes:")] + //[Verify (StronglyTypedNSArray)] + void ToEZDeviceListViewWithFilterTypes (NSObject[] filterTepes); - // -(void)addEzvizMonitor; - [Export("addEzvizMonitor")] - void AddEzvizMonitor(); + // -(void)addEzvizMonitor; + [Export ("addEzvizMonitor")] + void AddEzvizMonitor (); - // -(void)addEzvizMonitorWithDeviceType:(NSString *)deviceType; - [Export("addEzvizMonitorWithDeviceType:")] - void AddEzvizMonitorWithDeviceType(string deviceType); + // -(void)addEzvizMonitorWithDeviceType:(NSString *)deviceType; + [Export ("addEzvizMonitorWithDeviceType:")] + void AddEzvizMonitorWithDeviceType (string deviceType); - // -(void)Play:(id)deviceInfo; - [Export("Play:")] - void Play(NSObject deviceInfo); + // -(void)Play:(id)deviceInfo; + [Export ("Play:")] + void Play (NSObject deviceInfo); - // -(void)Play:(id)deviceInfo showCallout:(BOOL)isShow; - [Export("Play:showCallout:")] - void Play(NSObject deviceInfo, bool isShow); + // -(void)Play:(id)deviceInfo messageId:(NSString *)msgId showCallout:(BOOL)isShow; + [Export ("Play:messageId:showCallout:")] + void Play (NSObject deviceInfo, string msgId, bool isShow); - // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial; - [Export("PlayWithDeviceSerial:")] - void PlayWithDeviceSerial(string deviceSerial); + // -(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)PlayWithDeviceSerial:(NSString *)deviceSerial msgId:(NSString *)msgId; + [Export ("PlayWithDeviceSerial:msgId:")] + void PlayWithDeviceSerial (string deviceSerial, string msgId); - // -(void)setting:(id)deviceInfo; - [Export("setting:")] - void Setting(NSObject deviceInfo); + // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType; + [Export ("PlayWithDeviceSerial:deviceId:deviceType:")] + void PlayWithDeviceSerial (string deviceSerial, string deviceId, string deviceType); - // -(void)playBackVideo:(id)deviceInfo; - [Export("playBackVideo:")] - void PlayBackVideo(NSObject deviceInfo); + // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType msgId:(NSString *)msgId; + [Export ("PlayWithDeviceSerial:deviceId:deviceType:msgId:")] + void PlayWithDeviceSerial (string deviceSerial, string deviceId, string deviceType, string msgId); - // -(void)toTemPassView:(NSString *)deviceId; - [Export("toTemPassView:")] - void ToTemPassView(string deviceId); + // -(void)setting:(id)deviceInfo; + [Export ("setting:")] + void Setting (NSObject deviceInfo); - // -(void)toDeviceMsgListView:(NSString *)deviceId; - [Export("toDeviceMsgListView:")] - void ToDeviceMsgListView(string deviceId); - } + // -(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