summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLPerformInteractionResponse.m
blob: 8da3c6bfeffff1635423076f9d52c32f3f69c8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//  SDLPerformInteractionResponse.m
//


#import "SDLPerformInteractionResponse.h"

#import "NSMutableDictionary+Store.h"
#import "SDLRPCParameterNames.h"
#import "SDLRPCFunctionNames.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLPerformInteractionResponse

- (instancetype)init {
    if (self = [super initWithName:SDLRPCFunctionNamePerformInteraction]) {
    }
    return self;
}

- (void)setChoiceID:(nullable NSNumber<SDLInt> *)choiceID {
    [parameters sdl_setObject:choiceID forName:SDLRPCParameterNameChoiceId];
}

- (nullable NSNumber<SDLInt> *)choiceID {
    return [parameters sdl_objectForName:SDLRPCParameterNameChoiceId ofClass:NSNumber.class error:nil];
}

- (void)setManualTextEntry:(nullable NSString *)manualTextEntry {
    [parameters sdl_setObject:manualTextEntry forName:SDLRPCParameterNameManualTextEntry];
}

- (nullable NSString *)manualTextEntry {
    return [parameters sdl_objectForName:SDLRPCParameterNameManualTextEntry ofClass:NSString.class error:nil];
}

- (void)setTriggerSource:(nullable SDLTriggerSource)triggerSource {
    [parameters sdl_setObject:triggerSource forName:SDLRPCParameterNameTriggerSource];
}

- (nullable SDLTriggerSource)triggerSource {
    return [parameters sdl_enumForName:SDLRPCParameterNameTriggerSource error:nil];
}

@end
    
NS_ASSUME_NONNULL_END