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

#import "SDLOnDriverDistraction.h"

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

NS_ASSUME_NONNULL_BEGIN

@implementation SDLOnDriverDistraction

- (instancetype)init {
    if (self = [super initWithName:SDLNameOnDriverDistraction]) {
    }
    return self;
}

- (void)setState:(SDLDriverDistractionState)state {
    [parameters sdl_setObject:state forName:SDLNameState];
}

- (SDLDriverDistractionState)state {
    NSObject *obj = [parameters sdl_objectForName:SDLNameState];
    return (SDLDriverDistractionState)obj;
}

@end

NS_ASSUME_NONNULL_END