summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSingleTireStatus.m
blob: 87826f32b7d9f6e73dc59d660afad78bc5c03a68 (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
//  SDLSingleTireStatus.m
//

#import "SDLSingleTireStatus.h"

#import "SDLComponentVolumeStatus.h"
#import "SDLNames.h"


@implementation SDLSingleTireStatus

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

- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
    if (self = [super initWithDictionary:dict]) {
    }
    return self;
}

- (void)setStatus:(SDLComponentVolumeStatus *)status {
    if (status != nil) {
        [store setObject:status forKey:NAMES_status];
    } else {
        [store removeObjectForKey:NAMES_status];
    }
}

- (SDLComponentVolumeStatus *)status {
    NSObject *obj = [store objectForKey:NAMES_status];
    if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) {
        return (SDLComponentVolumeStatus *)obj;
    } else {
        return [SDLComponentVolumeStatus valueOf:(NSString *)obj];
    }
}

@end