blob: 677ff8e8430a1e23544c755f2cfcac825226db1e (
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
|
//
// SDLHMICapabilities.m
// SmartDeviceLink-iOS
#import "SDLHMICapabilities.h"
#import "SDLNames.h"
@implementation SDLHMICapabilities
- (void)setNavigation:(NSNumber<SDLBool> *)navigation {
if (navigation != nil) {
store[SDLNameNavigation] = navigation;
} else {
[store removeObjectForKey:SDLNameNavigation];
}
}
- (NSNumber<SDLBool> *)navigation {
return store[SDLNameNavigation];
}
- (void)setPhoneCall:(NSNumber<SDLBool> *)phoneCall {
if (phoneCall != nil) {
store[SDLNamePhoneCall] = phoneCall;
} else {
[store removeObjectForKey:SDLNamePhoneCall];
}
}
- (NSNumber<SDLBool> *)phoneCall {
return store[SDLNamePhoneCall];
}
@end
|