//
|
// 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 sceneName, sceneId;
|
|
@end
|
|
@interface HDLRunSceneIntentResponse ()
|
|
@property (readwrite, NS_NONATOMIC_IOSONLY) HDLRunSceneIntentResponseCode code;
|
|
@end
|
|
@implementation HDLRunSceneIntentResponse
|
|
@synthesize code = _code;
|
|
@dynamic errorMessage, successMessage, sceneName;
|
|
- (instancetype)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity {
|
self = [super init];
|
if (self) {
|
_code = code;
|
self.userActivity = userActivity;
|
}
|
return self;
|
}
|
|
+ (instancetype)successIntentResponseWithSceneName:(NSString *)sceneName {
|
HDLRunSceneIntentResponse *intentResponse = [[HDLRunSceneIntentResponse alloc] initWithCode:HDLRunSceneIntentResponseCodeSuccess userActivity:nil];
|
intentResponse.sceneName = sceneName;
|
return intentResponse;
|
}
|
|
+ (instancetype)failureIntentResponseWithErrorMessage:(NSString *)errorMessage {
|
HDLRunSceneIntentResponse *intentResponse = [[HDLRunSceneIntentResponse alloc] initWithCode:HDLRunSceneIntentResponseCodeFailure userActivity:nil];
|
intentResponse.errorMessage = errorMessage;
|
return intentResponse;
|
}
|
|
@end
|
|
#endif
|