JLChen
2021-11-29 06c09ecbdf83cc5cc33971ffb75ba81e85b6eb33
HDLSceneSiri/HDLSceneSiri/HDLRunSceneIntent.h
@@ -13,8 +13,12 @@
API_AVAILABLE(ios(12.0), macos(10.16), watchos(5.0)) API_UNAVAILABLE(tvos)
@interface HDLRunSceneIntent : INIntent
@property (readwrite, copy, nullable, nonatomic) NSString *sceneName;
@property (readwrite, copy, nullable, nonatomic) NSString *sceneId;
@property (readwrite, copy, nullable, nonatomic) NSString *controlName;
@property (readwrite, copy, nullable, nonatomic) NSString *controlId;
@property (readwrite, copy, nullable, nonatomic) NSString *homeId;
@property (readwrite, copy, nullable, nonatomic) NSString *controlType;
@property (readwrite, copy, nullable, nonatomic) NSString *controlJSONStr;
@property (readwrite, copy, nullable, nonatomic) NSString *actionName;
@end
@@ -38,7 +42,7 @@
 @see  HDLRunSceneIntentResponse
 */
- (void)handleRunScene:(HDLRunSceneIntent *)intent completion:(void (^)(HDLRunSceneIntentResponse *response))completion NS_SWIFT_NAME(handle(intent:completion:));
- (void)handleHDLRunScene:(HDLRunSceneIntent *)intent completion:(void (^)(HDLRunSceneIntentResponse *response))completion NS_SWIFT_NAME(handle(intent:completion:));
@optional
@@ -51,7 +55,7 @@
 @see HDLRunSceneIntentResponse
 */
- (void)confirmRunScene:(HDLRunSceneIntent *)intent completion:(void (^)(HDLRunSceneIntentResponse *response))completion NS_SWIFT_NAME(confirm(intent:completion:));
- (void)confirmHDLRunScene:(HDLRunSceneIntent *)intent completion:(void (^)(HDLRunSceneIntentResponse *response))completion NS_SWIFT_NAME(confirm(intent:completion:));
@end
@@ -86,7 +90,7 @@
/*!
 @abstract Initializes and returns the response object with the success code.
 */
+ (instancetype)successIntentResponseWithSceneName:(NSString *)sceneName NS_SWIFT_NAME(success(sceneName:));
+ (instancetype)successIntentResponseWithControlName:(NSString *)controlName NS_SWIFT_NAME(success(controlName:));
/*!
 @abstract Initializes and returns the response object with the failure code.
 */
@@ -94,7 +98,7 @@
@property (readwrite, copy, nullable, nonatomic) NSString *errorMessage;
@property (readwrite, copy, nullable, nonatomic) NSString *successMessage;
@property (readwrite, copy, nullable, nonatomic) NSString *sceneName;
@property (readwrite, copy, nullable, nonatomic) NSString *controlName;
/*!
 @abstract The response code indicating your success or failure in confirming or handling the intent.