-
Notifications
You must be signed in to change notification settings - Fork 110
/
SDLHMICapabilities.m
48 lines (34 loc) 路 1.46 KB
/
SDLHMICapabilities.m
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
48
//
// SDLHMICapabilities.m
// SmartDeviceLink-iOS
#import "SDLHMICapabilities.h"
#import "NSMutableDictionary+Store.h"
#import "SDLRPCParameterNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLHMICapabilities
- (void)setNavigation:(nullable NSNumber<SDLBool> *)navigation {
[self.store sdl_setObject:navigation forName:SDLRPCParameterNameNavigation];
}
- (nullable NSNumber<SDLBool> *)navigation {
return [self.store sdl_objectForName:SDLRPCParameterNameNavigation ofClass:NSNumber.class error:nil];
}
- (void)setPhoneCall:(nullable NSNumber<SDLBool> *)phoneCall {
[self.store sdl_setObject:phoneCall forName:SDLRPCParameterNamePhoneCall];
}
- (nullable NSNumber<SDLBool> *)phoneCall {
return [self.store sdl_objectForName:SDLRPCParameterNamePhoneCall ofClass:NSNumber.class error:nil];
}
- (void)setVideoStreaming:(nullable NSNumber<SDLBool> *)videoStreaming {
[self.store sdl_setObject:videoStreaming forName:SDLRPCParameterNameVideoStreaming];
}
- (nullable NSNumber<SDLBool> *)videoStreaming {
return [self.store sdl_objectForName:SDLRPCParameterNameVideoStreaming ofClass:NSNumber.class error:nil];
}
- (void)setRemoteControl:(nullable NSNumber<SDLBool> *)remoteControl {
[self.store sdl_setObject:remoteControl forName:SDLRPCParameterNameRemoteControl];
}
- (nullable NSNumber<SDLBool> *)remoteControl {
return [self.store sdl_objectForName:SDLRPCParameterNameRemoteControl ofClass:NSNumber.class error:nil];
}
@end
NS_ASSUME_NONNULL_END