blob: 5bc0e2b7f87689bb7d20de23192fcc5b57b0b231 (
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
|
//
// SDLGetSystemCapability.m
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 7/11/17.
// Copyright © 2017 smartdevicelink. All rights reserved.
//
#import "SDLGetSystemCapability.h"
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
#import "SDLSystemCapabilityType.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLGetSystemCapability
- (instancetype)init {
if (self = [super initWithName:SDLNameGetSystemCapability]) {
}
return self;
}
- (instancetype)initWithType:(SDLSystemCapabilityType)type {
self = [self init];
if (!self) {
return nil;
}
self.systemCapabilityType = type;
return self;
}
- (void)setSystemCapabilityType:(SDLSystemCapabilityType)type {
[parameters sdl_setObject:type forName:SDLNameSystemCapabilityType];
}
- (SDLSystemCapabilityType)systemCapabilityType {
return [parameters sdl_objectForName:SDLNameSystemCapabilityType];
}
@end
NS_ASSUME_NONNULL_END
|