blob: 687e43a8b3b451a3211fb4432edd9f6c45f27693 (
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
|
// SDLPermissionItem.m
//
#import "SDLPermissionItem.h"
#import "NSMutableDictionary+Store.h"
#import "SDLHMIPermissions.h"
#import "SDLRPCParameterNames.h"
#import "SDLParameterPermissions.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLPermissionItem
- (void)setRpcName:(NSString *)rpcName {
[store sdl_setObject:rpcName forName:SDLRPCParameterNameRPCName];
}
- (NSString *)rpcName {
NSError *error;
return [store sdl_objectForName:SDLRPCParameterNameRPCName ofClass:NSString.class error:&error];
}
- (void)setHmiPermissions:(SDLHMIPermissions *)hmiPermissions {
[store sdl_setObject:hmiPermissions forName:SDLRPCParameterNameHMIPermissions];
}
- (SDLHMIPermissions *)hmiPermissions {
NSError *error;
return [store sdl_objectForName:SDLRPCParameterNameHMIPermissions ofClass:SDLHMIPermissions.class error:&error];
}
- (void)setParameterPermissions:(SDLParameterPermissions *)parameterPermissions {
[store sdl_setObject:parameterPermissions forName:SDLRPCParameterNameParameterPermissions];
}
- (SDLParameterPermissions *)parameterPermissions {
NSError *error;
return [store sdl_objectForName:SDLRPCParameterNameParameterPermissions ofClass:SDLParameterPermissions.class error:&error];
}
@end
NS_ASSUME_NONNULL_END
|