blob: 6264ea5fd886c5aaad3c59f54785eb556a63ab40 (
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
|
//
// SDLOnLockScreenStatus.m
// SmartDeviceLink
//
#import "SDLOnLockScreenStatus.h"
#import "NSMutableDictionary+Store.h"
#import "SDLHMILevel.h"
#import "SDLLockScreenStatus.h"
#import "SDLRPCParameterNames.h"
#import "SDLRPCFunctionNames.h"
NS_ASSUME_NONNULL_BEGIN
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
@implementation SDLOnLockScreenStatus
#pragma clang diagnostic pop
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (instancetype)init {
if (self = [super initWithName:SDLRPCFunctionNameOnLockScreenStatus]) {
}
return self;
}
#pragma clang diagnostic pop
- (void)setLockScreenStatus:(SDLLockScreenStatus)lockScreenStatus {
[self.parameters sdl_setObject:lockScreenStatus forName:SDLRPCParameterNameOnLockScreenStatus];
}
- (SDLLockScreenStatus)lockScreenStatus {
NSError *error = nil;
return [self.parameters sdl_enumForName:SDLRPCParameterNameOnLockScreenStatus error:&error];
}
- (void)setHmiLevel:(SDLHMILevel)hmiLevel {
[self.parameters sdl_setObject:hmiLevel forName:SDLRPCParameterNameHMILevel];
}
- (SDLHMILevel)hmiLevel {
NSError *error = nil;
return [self.parameters sdl_enumForName:SDLRPCParameterNameHMILevel error:&error];
}
- (void)setUserSelected:(NSNumber<SDLBool> *)userSelected {
[self.parameters sdl_setObject:userSelected forName:SDLRPCParameterNameUserSelected];
}
- (NSNumber<SDLBool> *)userSelected {
NSError *error = nil;
return [self.parameters sdl_objectForName:SDLRPCParameterNameUserSelected ofClass:NSNumber.class error:&error];
}
- (void)setDriverDistractionStatus:(NSNumber<SDLBool> *)driverDistractionStatus {
[self.parameters sdl_setObject:driverDistractionStatus forName:SDLRPCParameterNameDriverDistractionStatus];
}
- (NSNumber<SDLBool> *)driverDistractionStatus {
NSError *error = nil;
return [self.parameters sdl_objectForName:SDLRPCParameterNameDriverDistractionStatus ofClass:NSNumber.class error:&error];
}
@end
NS_ASSUME_NONNULL_END
|