blob: db54f6264442496b5917efc02376a320155b54f0 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
// SDLBodyInformation.m
//
#import "SDLBodyInformation.h"
#import "SDLIgnitionStableStatus.h"
#import "SDLIgnitionStatus.h"
#import "SDLNames.h"
@implementation SDLBodyInformation
- (void)setParkBrakeActive:(NSNumber<SDLBool> *)parkBrakeActive {
if (parkBrakeActive != nil) {
[store setObject:parkBrakeActive forKey:SDLNameParkBrakeActive];
} else {
[store removeObjectForKey:SDLNameParkBrakeActive];
}
}
- (NSNumber<SDLBool> *)parkBrakeActive {
return [store objectForKey:SDLNameParkBrakeActive];
}
- (void)setIgnitionStableStatus:(SDLIgnitionStableStatus)ignitionStableStatus {
if (ignitionStableStatus != nil) {
[store setObject:ignitionStableStatus forKey:SDLNameIgnitionStableStatus];
} else {
[store removeObjectForKey:SDLNameIgnitionStableStatus];
}
}
- (SDLIgnitionStableStatus)ignitionStableStatus {
NSObject *obj = [store objectForKey:SDLNameIgnitionStableStatus];
return (SDLIgnitionStableStatus)obj;
}
- (void)setIgnitionStatus:(SDLIgnitionStatus)ignitionStatus {
if (ignitionStatus != nil) {
[store setObject:ignitionStatus forKey:SDLNameIgnitionStatus];
} else {
[store removeObjectForKey:SDLNameIgnitionStatus];
}
}
- (SDLIgnitionStatus)ignitionStatus {
NSObject *obj = [store objectForKey:SDLNameIgnitionStatus];
return (SDLIgnitionStatus)obj;
}
- (void)setDriverDoorAjar:(NSNumber<SDLBool> *)driverDoorAjar {
if (driverDoorAjar != nil) {
[store setObject:driverDoorAjar forKey:SDLNameDriverDoorAjar];
} else {
[store removeObjectForKey:SDLNameDriverDoorAjar];
}
}
- (NSNumber<SDLBool> *)driverDoorAjar {
return [store objectForKey:SDLNameDriverDoorAjar];
}
- (void)setPassengerDoorAjar:(NSNumber<SDLBool> *)passengerDoorAjar {
if (passengerDoorAjar != nil) {
[store setObject:passengerDoorAjar forKey:SDLNamePassengerDoorAjar];
} else {
[store removeObjectForKey:SDLNamePassengerDoorAjar];
}
}
- (NSNumber<SDLBool> *)passengerDoorAjar {
return [store objectForKey:SDLNamePassengerDoorAjar];
}
- (void)setRearLeftDoorAjar:(NSNumber<SDLBool> *)rearLeftDoorAjar {
if (rearLeftDoorAjar != nil) {
[store setObject:rearLeftDoorAjar forKey:SDLNameRearLeftDoorAjar];
} else {
[store removeObjectForKey:SDLNameRearLeftDoorAjar];
}
}
- (NSNumber<SDLBool> *)rearLeftDoorAjar {
return [store objectForKey:SDLNameRearLeftDoorAjar];
}
- (void)setRearRightDoorAjar:(NSNumber<SDLBool> *)rearRightDoorAjar {
if (rearRightDoorAjar != nil) {
[store setObject:rearRightDoorAjar forKey:SDLNameRearRightDoorAjar];
} else {
[store removeObjectForKey:SDLNameRearRightDoorAjar];
}
}
- (NSNumber<SDLBool> *)rearRightDoorAjar {
return [store objectForKey:SDLNameRearRightDoorAjar];
}
@end
|