blob: db1e6f09566c4e799cd7f57a44872f3fee3f4c8d (
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
|
// SDLStationIDNumber.m
//
#import "SDLStationIDNumber.h"
#import "SDLNames.h"
#import "NSMutableDictionary+Store.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLStationIDNumber
- (instancetype)initWithCountryCode:(nullable NSNumber<SDLInt> *)countryCode fccFacilityId:(nullable NSNumber<SDLInt> *)id {
self = [self init];
if(!self) {
return nil;
}
self.countryCode = countryCode;
self.fccFacilityId = id;
return self;
}
- (void)setCountryCode:(nullable NSNumber<SDLInt> *)countryCode {
[store sdl_setObject:countryCode forName:SDLNameCountryCode];
}
- (nullable NSNumber<SDLInt> *)countryCode {
return [store sdl_objectForName:SDLNameCountryCode];
}
- (void)setFccFacilityId:(nullable NSNumber<SDLInt> *)fccFacilityId {
[store sdl_setObject:fccFacilityId forName:SDLNameFCCFacilityId];
}
- (nullable NSNumber<SDLInt> *)fccFacilityId {
return [store sdl_objectForName:SDLNameFCCFacilityId];
}
@end
NS_ASSUME_NONNULL_END
|