| | |
| | | |
| | | @implementation HDLRunSceneIntent |
| | | |
| | | @dynamic sceneName, sceneId; |
| | | @dynamic controlName, controlId, homeId, controlType, controlJSONStr, actionName; |
| | | |
| | | @end |
| | | |
| | |
| | | |
| | | @synthesize code = _code; |
| | | |
| | | @dynamic errorMessage, successMessage, sceneName; |
| | | @dynamic errorMessage, successMessage, controlName; |
| | | |
| | | - (instancetype)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity { |
| | | self = [super init]; |
| | |
| | | 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; |
| | | } |
| | | |