blob: 05b635357fca8fff12707e3c21cafa795f3e03f0 (
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
48
49
50
51
|
// SDLClusterModeStatus.m
//
#import "SDLClusterModeStatus.h"
#import "NSMutableDictionary+Store.h"
#import "SDLRPCParameterNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLClusterModeStatus
- (void)setPowerModeActive:(NSNumber<SDLBool> *)powerModeActive {
[store sdl_setObject:powerModeActive forName:SDLRPCParameterNamePowerModeActive];
}
- (NSNumber<SDLBool> *)powerModeActive {
NSError *error = nil;
return [store sdl_objectForName:SDLRPCParameterNamePowerModeActive ofClass:NSNumber.class error:&error];
}
- (void)setPowerModeQualificationStatus:(SDLPowerModeQualificationStatus)powerModeQualificationStatus {
[store sdl_setObject:powerModeQualificationStatus forName:SDLRPCParameterNamePowerModeQualificationStatus];
}
- (SDLPowerModeQualificationStatus)powerModeQualificationStatus {
NSError *error = nil;
return [store sdl_enumForName:SDLRPCParameterNamePowerModeQualificationStatus error:&error];
}
- (void)setCarModeStatus:(SDLCarModeStatus)carModeStatus {
[store sdl_setObject:carModeStatus forName:SDLRPCParameterNameCarModeStatus];
}
- (SDLCarModeStatus)carModeStatus {
NSError *error = nil;
return [store sdl_enumForName:SDLRPCParameterNameCarModeStatus error:&error];
}
- (void)setPowerModeStatus:(SDLPowerModeStatus)powerModeStatus {
[store sdl_setObject:powerModeStatus forName:SDLRPCParameterNamePowerModeStatus];
}
- (SDLPowerModeStatus)powerModeStatus {
NSError *error = nil;
return [store sdl_enumForName:SDLRPCParameterNamePowerModeStatus error:&error];
}
@end
NS_ASSUME_NONNULL_END
|