//
|
// HDLRunSceneIntent.m
|
//
|
// This file was automatically generated and should not be edited.
|
//
|
|
#import "HDLRunSceneIntent.h"
|
|
#if __has_include(<Intents/Intents.h>) && !TARGET_OS_TV
|
|
@implementation HDLRunSceneIntent
|
|
@dynamic controlName, controlId, homeId, controlType, controlJSONStr, actionName;
|
|
@end
|
|
@interface HDLRunSceneIntentResponse ()
|
|
@property (readwrite, NS_NONATOMIC_IOSONLY) HDLRunSceneIntentResponseCode code;
|
|
@end
|
|
@implementation HDLRunSceneIntentResponse
|
|
@synthesize code = _code;
|
|
@dynamic errorMessage, successMessage, controlName;
|
|
- (instancetype)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity {
|
self = [super init];
|
if (self) {
|
_code = code;
|
self.userActivity = userActivity;
|
}
|
return self;
|
}
|
|
+ (instancetype)successIntentResponseWithControlName:(NSString *)controlName {
|
HDLRunSceneIntentResponse *intentResponse = [[HDLRunSceneIntentResponse alloc] initWithCode:HDLRunSceneIntentResponseCodeSuccess userActivity:nil];
|
intentResponse.controlName = controlName;
|
return intentResponse;
|
}
|
|
+ (instancetype)failureIntentResponseWithErrorMessage:(NSString *)errorMessage {
|
HDLRunSceneIntentResponse *intentResponse = [[HDLRunSceneIntentResponse alloc] initWithCode:HDLRunSceneIntentResponseCodeFailure userActivity:nil];
|
intentResponse.errorMessage = errorMessage;
|
return intentResponse;
|
}
|
|
@end
|
|
#endif
|