JLChen
2021-11-29 06c09ecbdf83cc5cc33971ffb75ba81e85b6eb33
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
using System;
using Foundation;
using Intents;
using ObjCRuntime;
using UIKit;
 
namespace HDLSceneSiri
{
 
    // @interface HDLRunSceneIntent : INIntent
    //[Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
    [BaseType(typeof(INIntent))]
    interface HDLRunSceneIntent
    {
        // @property (readwrite, copy, nonatomic) NSString * _Nullable controlName;
        [NullAllowed, Export("controlName")]
        string ControlName { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable controlId;
        [NullAllowed, Export("controlId")]
        string ControlId { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable homeId;
        [NullAllowed, Export("homeId")]
        string HomeId { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable controlType;
        [NullAllowed, Export("controlType")]
        string ControlType { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable controlJSONStr;
        [NullAllowed, Export("controlJSONStr")]
        string ControlJSONStr { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable actionName;
        [NullAllowed, Export("actionName")]
        string ActionName { get; set; }
    }
 
    // @protocol HDLRunSceneIntentHandling <NSObject>
    /*
  Check whether adding [Model] to this declaration is appropriate.
  [Model] is used to generate a C# class that implements this protocol,
  and might be useful for protocols that consumers are supposed to implement,
  since consumers can subclass the generated class instead of implementing
  the generated interface. If consumers are not supposed to implement this
  protocol, then [Model] is redundant and will generate code that will never
  be used.
*/
    //[Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
    //[Protocol]
    [Protocol, Model]
    [BaseType(typeof(NSObject))]
    interface HDLRunSceneIntentHandling
    {
        // @required -(void)handleHDLRunScene:(HDLRunSceneIntent * _Nonnull)intent completion:(void (^ _Nonnull)(HDLRunSceneIntentResponse * _Nonnull))completion __attribute__((swift_name("handle(intent:completion:)")));
        [Abstract]
        [Export("handleHDLRunScene:completion:")]
        void HandleHDLRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion);
 
        // @optional -(void)confirmHDLRunScene:(HDLRunSceneIntent * _Nonnull)intent completion:(void (^ _Nonnull)(HDLRunSceneIntentResponse * _Nonnull))completion __attribute__((swift_name("confirm(intent:completion:)")));
        [Export("confirmHDLRunScene:completion:")]
        void ConfirmHDLRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion);
    }
 
    // @interface HDLRunSceneIntentResponse : INIntentResponse
    //[Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
    [BaseType(typeof(INIntentResponse))]
    [DisableDefaultCtor]
    interface HDLRunSceneIntentResponse
    {
        // -(instancetype _Nonnull)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(NSUserActivity * _Nullable)userActivity __attribute__((objc_designated_initializer));
        [Export("initWithCode:userActivity:")]
        [DesignatedInitializer]
        IntPtr Constructor(HDLRunSceneIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
 
        // +(instancetype _Nonnull)successIntentResponseWithControlName:(NSString * _Nonnull)controlName __attribute__((swift_name("success(controlName:)")));
        [Static]
        [Export("successIntentResponseWithControlName:")]
        HDLRunSceneIntentResponse SuccessIntentResponseWithControlName(string controlName);
 
        // +(instancetype _Nonnull)failureIntentResponseWithErrorMessage:(NSString * _Nonnull)errorMessage __attribute__((swift_name("failure(errorMessage:)")));
        [Static]
        [Export("failureIntentResponseWithErrorMessage:")]
        HDLRunSceneIntentResponse FailureIntentResponseWithErrorMessage(string errorMessage);
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable errorMessage;
        [NullAllowed, Export("errorMessage")]
        string ErrorMessage { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable successMessage;
        [NullAllowed, Export("successMessage")]
        string SuccessMessage { get; set; }
 
        // @property (readwrite, copy, nonatomic) NSString * _Nullable controlName;
        [NullAllowed, Export("controlName")]
        string ControlName { get; set; }
 
        // @property (readonly, nonatomic) HDLRunSceneIntentResponseCode code;
        [Export("code")]
        HDLRunSceneIntentResponseCode Code { get; }
    }
 
    // @interface HDLSiriShortcutModel : NSObject
    [BaseType(typeof(NSObject))]
    interface HDLSiriShortcutModel
    {
        // @property (copy, nonatomic) NSString * _Nonnull title;
        [Export("title")]
        string Title { get; set; }
 
        // @property (copy, nonatomic) NSString * _Nonnull content;
        [Export("content")]
        string Content { get; set; }
 
        // @property (copy, nonatomic) NSArray<HDLSiriControlModel *> * _Nonnull list;
        [Export("list", ArgumentSemantic.Copy)]
        HDLSiriControlModel[] List { get; set; }
    }
 
    // @interface HDLSiriControlModel : NSObject
    [BaseType(typeof(NSObject))]
    interface HDLSiriControlModel
    {
        // @property (copy, nonatomic) NSString * _Nonnull controlName;
        [Export("controlName")]
        string ControlName { get; set; }
 
        // @property (copy, nonatomic) NSString * _Nonnull controlId;
        [Export("controlId")]
        string ControlId { get; set; }
 
        // @property (copy, nonatomic) NSString * _Nonnull controlType;
        [Export("controlType")]
        string ControlType { get; set; }
 
        // @property (copy, nonatomic) NSString * _Nonnull controlJSONStr;
        [Export("controlJSONStr")]
        string ControlJSONStr { get; set; }
 
        // @property (copy, nonatomic) NSString * _Nonnull actionName;
        [Export("actionName")]
        string ActionName { get; set; }
    }
 
    // @interface HDLSiriSceneListViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
    [BaseType(typeof(UIViewController))]
    interface HDLSiriSceneListViewController : IUITableViewDataSource, IUITableViewDelegate
    {
        // @property (assign, nonatomic) UITableViewStyle tableViewStyle;
        [Export("tableViewStyle", ArgumentSemantic.Assign)]
        UITableViewStyle TableViewStyle { get; set; }
 
        // @property (nonatomic, strong) UITableView * _Nonnull tableView;
        [Export("tableView", ArgumentSemantic.Strong)]
        UITableView TableView { get; set; }
 
        [Wrap("WeakDataSource")]
        NSMutableArray DataSource { get; set; }
 
        // @property (nonatomic, strong) NSMutableArray * _Nonnull dataSource;
        [NullAllowed, Export("dataSource", ArgumentSemantic.Strong)]
        NSObject WeakDataSource { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull titleName;
        [Export("titleName", ArgumentSemantic.Strong)]
        string TitleName { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull homeId;
        [Export("homeId", ArgumentSemantic.Strong)]
        string HomeId { get; set; }
    }
}