JLChen
2021-11-29 2e82c7f03b0833e3a149d02453d66d8db133b2ce
HDLSceneSiri/HDLSceneSiri/HDLRunSceneIntent.m
@@ -10,7 +10,7 @@
@implementation HDLRunSceneIntent
@dynamic sceneName, sceneId;
@dynamic controlName, controlId, homeId, controlType, controlJSONStr, actionName;
@end
@@ -24,7 +24,7 @@
@synthesize code = _code;
@dynamic errorMessage, successMessage, sceneName;
@dynamic errorMessage, successMessage, controlName;
- (instancetype)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity {
    self = [super init];
@@ -35,9 +35,9 @@
    return self;
}
+ (instancetype)successIntentResponseWithSceneName:(NSString *)sceneName {
+ (instancetype)successIntentResponseWithControlName:(NSString *)controlName {
    HDLRunSceneIntentResponse *intentResponse = [[HDLRunSceneIntentResponse alloc] initWithCode:HDLRunSceneIntentResponseCodeSuccess userActivity:nil];
    intentResponse.sceneName = sceneName;
    intentResponse.controlName = controlName;
    return intentResponse;
}