萤石云 iOSSDK,移植跨平台相关工程
JLChen
2021-07-08 d93de8833865eb833ca72320f317bf92ba2ae52a
EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs
@@ -1,11 +1,96 @@
using System;
using ObjCRuntime;
using Foundation;
using UIKit;
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; }
        // @property (nonatomic) NSInteger cameraNum;
        [Export("cameraNum")]
        int CameraNum { get; set; }
        // @property (nonatomic) NSInteger defence;
        [Export("defence")]
        int Defence { get; set; }
        // @property (nonatomic) NSInteger detectorNum;
        [Export("detectorNum")]
        int DetectorNum { get; set; }
        // @property (nonatomic, strong) NSArray * detectorInfo;
        [Export("detectorInfo", ArgumentSemantic.Strong)]
        //[Verify(StronglyTypedNSArray)]
        NSArray DetectorInfo { get; set; }
        // @property (copy, nonatomic) NSString * deviceCover;
        [Export("deviceCover")]
        string DeviceCover { get; set; }
        // @property (copy, nonatomic) NSString * deviceName;
        [Export("deviceName")]
        string DeviceName { get; set; }
        // @property (copy, nonatomic) NSString * deviceSerial;
        [Export("deviceSerial")]
        string DeviceSerial { get; set; }
        // @property (copy, nonatomic) NSString * deviceType;
        [Export("deviceType")]
        string DeviceType { get; set; }
        // @property (copy, nonatomic) NSString * deviceVersion;
        [Export("deviceVersion")]
        string DeviceVersion { get; set; }
        // @property (nonatomic) BOOL isEncrypt;
        [Export("isEncrypt")]
        bool IsEncrypt { get; set; }
        // @property (nonatomic) NSInteger status;
        [Export("status")]
        int Status { get; set; }
        // @property (nonatomic) NSInteger isSupportTalk;
        [Export("isSupportTalk")]
        int IsSupportTalk { get; set; }
        // @property (nonatomic) BOOL isSupportPTZ;
        [Export("isSupportPTZ")]
        bool IsSupportPTZ { get; set; }
        // @property (nonatomic) BOOL isSupportZoom;
        [Export("isSupportZoom")]
        bool IsSupportZoom { get; set; }
        // @property (nonatomic) BOOL isSupportAudioOnOff;
        [Export("isSupportAudioOnOff")]
        bool IsSupportAudioOnOff { get; set; }
        // @property (nonatomic) BOOL isSupportMirrorCenter;
        [Export("isSupportMirrorCenter")]
        bool IsSupportMirrorCenter { get; set; }
        // @property (nonatomic) BOOL isSupportSoundWave;
        [Export("isSupportSoundWave")]
        bool IsSupportSoundWave { get; set; }
        // @property (copy, nonatomic) NSString * category;
        [Export("category")]
        string Category { get; set; }
        // @property (nonatomic, strong) NSDate * addTime;
        [Export("addTime", ArgumentSemantic.Strong)]
        NSDate AddTime { get; set; }
    }
   // @interface EZSDK : NSObject
   [BaseType (typeof(NSObject))]
   interface EZSDK
@@ -25,10 +110,10 @@
      [Export ("setHDlAccessToken:refreshToken:")]
      void SetHDlAccessToken (string accessToken, string refreshToken);
      // +(void)setRequestHttpsHostAndPlatform:(NSString *)requestHttpsHost platform:(int)platform;
        // +(void)setRequestHttpsHostAndPlatform:(NSString *)requestHttpsHost platform:(int)platform homeId:(NSString *)homeId;
      [Static]
      [Export("setRequestHttpsHostAndPlatform:platform:")]
      void SetRequestHttpsHostAndPlatform(string requestHttpsHost, int platform);
        [Export("setRequestHttpsHostAndPlatform:platform:homeId:")]
        void SetRequestHttpsHostAndPlatform(string requestHttpsHost, int platform, string homeId);
      // +(void)go2EZvizMonitor;
      [Static]
@@ -40,20 +125,24 @@
      [Export ("addEzvizMonitor")]
      void AddEzvizMonitor ();
      // +(void)Play:(NSObject *)deviceInfo;
        // +(void)Play:(EZDeviceInfo *)deviceInfo;
      [Static]
      [Export ("Play:")]
      void Play (NSObject deviceInfo);
        void Play(EZDeviceInfo deviceInfo);
      // +(void)setting:(NSObject *)deviceInfo;
        // +(void)PlayWithDeviceSerial:(NSString *)deviceSerial;
        [Static]
        [Export("PlayWithDeviceSerial:")]
        void PlayWithDeviceSerial(string deviceSerial);
        // +(void)setting:(EZDeviceInfo *)deviceInfo;
      [Static]
      [Export ("setting:")]
      void Setting (NSObject deviceInfo);
        void Setting(EZDeviceInfo deviceInfo);
      // +(void)playBackVideo:(NSObject *)deviceInfo;
        // +(void)playBackVideo:(EZDeviceInfo *)deviceInfo;
      [Static]
      [Export ("playBackVideo:")]
      void PlayBackVideo (NSObject deviceInfo);
        void PlayBackVideo(EZDeviceInfo deviceInfo);
   }
}