summaryrefslogtreecommitdiff
path: root/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageResolution.m
blob: 7f10116dec6d20f5822ed12fcb326f142b8af5cc (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
//  SDLImageResolution.m
//


#import "SDLImageResolution.h"

#import "SDLNames.h"

@implementation SDLImageResolution

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

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

- (void)setResolutionWidth:(NSNumber *)resolutionWidth {
    if (resolutionWidth != nil) {
        [store setObject:resolutionWidth forKey:NAMES_resolutionWidth];
    } else {
        [store removeObjectForKey:NAMES_resolutionWidth];
    }
}

- (NSNumber *)resolutionWidth {
    return [store objectForKey:NAMES_resolutionWidth];
}

- (void)setResolutionHeight:(NSNumber *)resolutionHeight {
    if (resolutionHeight != nil) {
        [store setObject:resolutionHeight forKey:NAMES_resolutionHeight];
    } else {
        [store removeObjectForKey:NAMES_resolutionHeight];
    }
}

- (NSNumber *)resolutionHeight {
    return [store objectForKey:NAMES_resolutionHeight];
}

@end