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


#import "SDLGetDTCsResponse.h"

#import "SDLNames.h"

@implementation SDLGetDTCsResponse

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

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

- (void)setEcuHeader:(NSNumber *)ecuHeader {
    if (ecuHeader != nil) {
        [parameters setObject:ecuHeader forKey:NAMES_ecuHeader];
    } else {
        [parameters removeObjectForKey:NAMES_ecuHeader];
    }
}

- (NSNumber *)ecuHeader {
    return [parameters objectForKey:NAMES_ecuHeader];
}

- (void)setDtc:(NSMutableArray *)dtc {
    if (dtc != nil) {
        [parameters setObject:dtc forKey:NAMES_dtc];
    } else {
        [parameters removeObjectForKey:NAMES_dtc];
    }
}

- (NSMutableArray *)dtc {
    return [parameters objectForKey:NAMES_dtc];
}

@end