JLChen
2020-09-08 45d7c5536bd9b4516feb1401753e61717d7dd888
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
using System;
 
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
 
namespace com.freeview.global
{
    // @interface Video : NSObject
    [BaseType (typeof (NSObject))]
    interface Video
    {
        //+(void)Logout;
        [Static]
        [Export ("Logout")]
        void Logout ();
        // +(void)ShowNotice;
        [Static]
        [Export ("ShowNotice")]
        void ShowNotice ();
        // +(void)init:(NSString *)Token sipID:(NSString *)sipID DevelopCode:(NSString *)DevelopCode TenantCode:(NSString *)TenantCode;
        [Static]
        [Export ("init:sipID:DevelopCode:TenantCode:")]
        void Init (string Token, string sipID, string DevelopCode, string TenantCode);
 
        // +(void)init:(NSString *)Token sipID:(NSString *)sipID;
        [Static]
        [Export ("init:sipID:")]
        void Init (string Token, string sipID);
 
        // +(void)ShowVideo;
        [Static]
        [Export ("ShowVideo")]
        void ShowVideo ();
 
        // +(BOOL)FVapplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
        [Static]
        [Export ("FVapplication:didFinishLaunchingWithOptions:")]
        bool FVapplication (UIApplication application, NSDictionary launchOptions);
 
        // +(void)FVapplicationWillResignActive:(UIApplication *)application;
        [Static]
        [Export ("FVapplicationWillResignActive:")]
        void FVapplicationWillResignActive (UIApplication application);
 
        // +(void)FVapplicationDidEnterBackground:(UIApplication *)application;
        [Static]
        [Export ("FVapplicationDidEnterBackground:")]
        void FVapplicationDidEnterBackground (UIApplication application);
 
        // +(void)FVapplicationDidBecomeActive:(UIApplication *)application;
        [Static]
        [Export ("FVapplicationDidBecomeActive:")]
        void FVapplicationDidBecomeActive (UIApplication application);
    }
 
}
 
namespace video
{
    using Foundation;
    using ObjCRuntime;
    // @interface FV : NSObject
    [BaseType (typeof (NSObject))]
    interface FV
    {
        // +(void)FVloginWithAccount:(NSString *)Account Password:(NSString *)Password Company:(int)Company;
        [Static]
        [Export ("FVloginWithAccount:Password:Company:")]
        void FVloginWithAccount (string Account, string Password, int Company);
 
        // +(BOOL)FVapplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
        [Static]
        [Export ("FVapplication:didFinishLaunchingWithOptions:")]
        bool FVapplication (UIApplication application, NSDictionary launchOptions);
 
        // +(void)FVapplicationWillResignActive:(UIApplication *)application;
        [Static]
        [Export ("FVapplicationWillResignActive:")]
        void FVapplicationWillResignActive (UIApplication application);
 
        // +(void)FVapplicationDidEnterBackground:(UIApplication *)application;
        [Static]
        [Export ("FVapplicationDidEnterBackground:")]
        void FVapplicationDidEnterBackground (UIApplication application);
 
        // +(void)FVapplicationDidBecomeActive:(UIApplication *)application;
        [Static]
        [Export ("FVapplicationDidBecomeActive:")]
        void FVapplicationDidBecomeActive (UIApplication application);
    }
 
}
 
namespace EZMonitor
{
    using Foundation;
    using ObjCRuntime;
    using Com.Hdl.ON;
 
    // @interface DeviceInfo : NSObject
    [BaseType (typeof (NSObject))]
    interface DeviceInfo
    {
        // @property (nonatomic, strong) NSString * DeviceName;
        [Export ("DeviceName", ArgumentSemantic.Strong)]
        string DeviceName { get; set; }
 
        // @property (nonatomic, strong) NSString * DeviceSerial;
        [Export ("DeviceSerial", ArgumentSemantic.Strong)]
        string DeviceSerial { get; set; }
 
        // @property (assign, nonatomic) int DeviceNum;
        [Export ("DeviceNum")]
        int DeviceNum { get; set; }
 
        // @property (assign, nonatomic) int DeviceCameraInfoListSize;
        [Export ("DeviceCameraInfoListSize")]
        int DeviceCameraInfoListSize { get; set; }
 
        // @property (nonatomic, strong) NSObject * RealObject;
        [Export ("RealObject", ArgumentSemantic.Strong)]
        NSObject RealObject { get; set; }
 
        // @property (nonatomic, strong) NSArray * cameraInfo;
        [Export ("cameraInfo", ArgumentSemantic.Strong)]
        //[Verify (StronglyTypedNSArray)]
        NSObject [] CameraInfo { get; set; }
    }
 
    // @interface Ezviz : NSObject
    [BaseType (typeof (NSObject))]
    interface Ezviz
    {
 
        // +(void)libInit;
        [Static]
        [Export ("libInit")]
        void LibInit ();
 
        [Static]
        [Export ("readPath:")]
        void ReadPath (string path);
 
    }
 
   
 
}
 
 
namespace Com.Hdl.ON
{
 
    using Foundation;
    using ObjCRuntime;
    //using Com.Hdl.ON;
 
 
    // @interface CommonList : NSObject
    [BaseType (typeof (NSObject))]
    interface CommonList
    {
 
        // +(void)MonitorPushMessage:(NSString *)MonitorType ID:(NSString *)ID;
        [Static]
        [Export ("MonitorPushMessage:ID:")]
        void MonitorPushMessage (string MonitorType, string ID); 
 
        [Static]
        [Export ("CameraList")]
        void CameraList ();
 
        //// +(NSMutableDictionary *)getMonitorDatas;
        //[Static]
        //[Export ("getMonitorDatas")]
        ////[Verify (MethodToProperty)]
        //NSMutableArray MonitorScenePathList ();
 
        // +(NSMutableArray<MonitorData *> *)getMonitorDatas;
        [Static]
        [Export ("getMonitorDatas")]
        //[Verify (MethodToProperty)]
        NSMutableArray monitorScenePathList { get; }
 
        // +(ICommon *)EZGetICommon;
        [Static]
        [Export ("EZICommon")]
        //[Verify (MethodToProperty)]
        ICommon EZICommon ();
 
        // +(NSArray *)getDeviceList:(int)pageIndex :(int)pageSize;
        [Static]
        [Export ("getDeviceList::")]
        //[Verify (StronglyTypedNSArray)]
        EZMonitor.DeviceInfo [] GetDeviceList (int pageIndex, int pageSize);
 
        // +(void)addEzvizMonitor;
        [Static]
        [Export ("addEzvizMonitor")]
        void AddEzvizMonitor ();
 
        // +(void)Play:(NSObject *)deviceInfo;
        [Static]
        [Export ("Play:")]
        void Play (NSObject deviceInfo);
 
        // +(void)setting:(NSObject *)deviceInfo;
        [Static]
        [Export ("setting:")]
        void Setting (NSObject deviceInfo);
 
        // +(void)playBackVideo:(NSObject *)deviceInfo;
        [Static]
        [Export ("playBackVideo:")]
        void PlayBackVideo (NSObject deviceInfo);
 
        //go2EZvizMonitor
        [Static]
        [Export ("go2EZvizMonitor")]
        void Go2EZvizMonitor ();
 
        //login
        [Static]
        [Export ("login")]
        void login ();
    }
    // @interface MonitorData : NSObject
   
 
    // typedef void (^dd)(MonitorData *);
    delegate void dd (MonitorData arg0);
 
    // @interface ICommon : NSObject
    [BaseType (typeof (NSObject))]
    interface ICommon
    {
        // @property (copy, nonatomic) dd MonitorInfoChanged;
        [Export ("MonitorSceneData", ArgumentSemantic.Copy)]
        dd MonitorSceneData { get; set; }
 
        [Export ("ControlMonitorScene", ArgumentSemantic.Copy)]
        dd ControlMonitorScene { get; set; }
 
 
    }
 
    [BaseType (typeof (NSObject))]
    interface MonitorData
    {
        // @property (nonatomic, strong) NSString * Remark;
        [Export ("Remark", ArgumentSemantic.Strong)]
        string Remark { get; set; }
 
        // @property (nonatomic, strong) NSString * ControlType;
        [Export ("ControlType", ArgumentSemantic.Strong)]
        string ControlType { get; set; }
 
        // @property (nonatomic, strong) NSString * SelectedImagePath;
        [Export ("SelectedImagePath", ArgumentSemantic.Strong)]
        string SelectedImagePath { get; set; }
 
        // @property (nonatomic, strong) NSString * ImagePath;
        [Export ("ImagePath", ArgumentSemantic.Strong)]
        string ImagePath { get; set; }
 
        // @property (nonatomic, strong) NSString * FileName;
        [Export ("FileName", ArgumentSemantic.Strong)]
        string FileName { get; set; }
 
        // @property (nonatomic, strong) NSString * Type;
        [Export ("Type", ArgumentSemantic.Strong)]
        string Type { get; set; }
 
        // @property (nonatomic, strong) NSString * ID;
        [Export ("ID", ArgumentSemantic.Strong)]
        string Id { get; set; }
    } 
 
 
 
    // The first step to creating a binding is to add your native library ("libNativeLibrary.a")
    // to the project by right-clicking (or Control-clicking) the folder containing this source
    // file and clicking "Add files..." and then simply select the native library (or libraries)
    // that you want to bind.
    //
    // When you do that, you'll notice that MonoDevelop generates a code-behind file for each
    // native library which will contain a [LinkWith] attribute. MonoDevelop auto-detects the
    // architectures that the native library supports and fills in that information for you,
    // however, it cannot auto-detect any Frameworks or other system libraries that the
    // native library may depend on, so you'll need to fill in that information yourself.
    //
    // Once you've done that, you're ready to move on to binding the API...
    //
    //
    // Here is where you'd define your API definition for the native Objective-C library.
    //
    // For example, to bind the following Objective-C class:
    //
    //     @interface Widget : NSObject {
    //     }
    //
    // The C# binding would look like this:
    //
    //     [BaseType (typeof (NSObject))]
    //     interface Widget {
    //     }
    //
    // To bind Objective-C properties, such as:
    //
    //     @property (nonatomic, readwrite, assign) CGPoint center;
    //
    // You would add a property definition in the C# interface like so:
    //
    //     [Export ("center")]
    //     CGPoint Center { get; set; }
    //
    // To bind an Objective-C method, such as:
    //
    //     -(void) doSomething:(NSObject *)object atIndex:(NSInteger)index;
    //
    // You would add a method definition to the C# interface like so:
    //
    //     [Export ("doSomething:atIndex:")]
    //     void DoSomething (NSObject object, int index);
    //
    // Objective-C "constructors" such as:
    //
    //     -(id)initWithElmo:(ElmoMuppet *)elmo;
    //
    // Can be bound as:
    //
    //     [Export ("initWithElmo:")]
    //     IntPtr Constructor (ElmoMuppet elmo);
    //
    // For more information, see http://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/
    //
}