blob: e26d3ab5d1eef0b1bc97e36e5f5054e2c448fcdd (
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
|
// SDLHeadLampStatus.m
//
#import "SDLHeadLampStatus.h"
#import "NSMutableDictionary+Store.h"
#import "SDLAmbientLightStatus.h"
#import "SDLNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLHeadLampStatus
- (void)setLowBeamsOn:(NSNumber<SDLBool> *)lowBeamsOn {
[store sdl_setObject:lowBeamsOn forName:SDLNameLowBeamsOn];
}
- (NSNumber<SDLBool> *)lowBeamsOn {
return [store sdl_objectForName:SDLNameLowBeamsOn];
}
- (void)setHighBeamsOn:(NSNumber<SDLBool> *)highBeamsOn {
[store sdl_setObject:highBeamsOn forName:SDLNameHighBeamsOn];
}
- (NSNumber<SDLBool> *)highBeamsOn {
return [store sdl_objectForName:SDLNameHighBeamsOn];
}
- (void)setAmbientLightSensorStatus:(nullable SDLAmbientLightStatus)ambientLightSensorStatus {
[store sdl_setObject:ambientLightSensorStatus forName:SDLNameAmbientLightSensorStatus];
}
- (nullable SDLAmbientLightStatus)ambientLightSensorStatus {
return [store sdl_objectForName:SDLNameAmbientLightSensorStatus];
}
@end
NS_ASSUME_NONNULL_END
|