summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLParameterPermissions.m
blob: bcc2f7047bfadc66c874f327e82954834cc2cb0f (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
//  SDLParameterPermissions.m
//


#import "SDLParameterPermissions.h"

#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLParameterPermissions

- (void)setAllowed:(NSArray<NSString *> *)allowed {
    [store sdl_setObject:allowed forName:SDLNameAllowed];
}

- (NSArray<NSString *> *)allowed {
    return [store sdl_objectForName:SDLNameAllowed];
}

- (void)setUserDisallowed:(NSArray<NSString *> *)userDisallowed {
    [store sdl_setObject:userDisallowed forName:SDLNameUserDisallowed];
}

- (NSArray<NSString *> *)userDisallowed {
    return [store sdl_objectForName:SDLNameUserDisallowed];
}

@end

NS_ASSUME_NONNULL_END