JLChen
2021-07-08 d93de8833865eb833ca72320f317bf92ba2ae52a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
using System;
using 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; }
 
        // @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
    {
        // +(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
        [Static]
        [Export("initLibWithAppKey:globalAppKey:")]
        bool InitLibWithAppKey(string appKey, string globalAppKey);
 
        // +(void)setEZAccessToken:(NSString *)accessToken;
        [Static]
        [Export("setEZAccessToken:")]
        void SetEZAccessToken(string accessToken);
 
        // +(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken;
        [Static]
        [Export("setHDlAccessToken:refreshToken:")]
        void SetHDlAccessToken(string accessToken, string refreshToken);
 
        // +(void)setRequestHttpsHostAndPlatform:(NSString *)requestHttpsHost platform:(int)platform homeId:(NSString *)homeId;
        [Static]
        [Export("setRequestHttpsHostAndPlatform:platform:homeId:")]
        void SetRequestHttpsHostAndPlatform(string requestHttpsHost, int platform, string homeId);
 
        // +(void)go2EZvizMonitor;
        [Static]
        [Export("go2EZvizMonitor")]
        void Go2EZvizMonitor();
 
        // +(void)addEzvizMonitor;
        [Static]
        [Export("addEzvizMonitor")]
        void AddEzvizMonitor();
 
        // +(void)Play:(EZDeviceInfo *)deviceInfo;
        [Static]
        [Export("Play:")]
        void Play(EZDeviceInfo deviceInfo);
 
        // +(void)PlayWithDeviceSerial:(NSString *)deviceSerial;
        [Static]
        [Export("PlayWithDeviceSerial:")]
        void PlayWithDeviceSerial(string deviceSerial);
 
        // +(void)setting:(EZDeviceInfo *)deviceInfo;
        [Static]
        [Export("setting:")]
        void Setting(EZDeviceInfo deviceInfo);
 
        // +(void)playBackVideo:(EZDeviceInfo *)deviceInfo;
        [Static]
        [Export("playBackVideo:")]
        void PlayBackVideo(EZDeviceInfo deviceInfo);
    }
}