blob: 4211227f08a22b7496d2ae5156bdb111d5d1d4d6 (
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
|
//
// SDLNavigationServiceManifest.m
// SmartDeviceLink
//
// Created by Nicole on 2/25/19.
// Copyright © 2019 smartdevicelink. All rights reserved.
//
#import "SDLNavigationServiceManifest.h"
#import "NSMutableDictionary+Store.h"
#import "SDLRPCParameterNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLNavigationServiceManifest
- (instancetype)initWithAcceptsWayPoints:(BOOL)acceptsWayPoints {
self = [self init];
if (!self) {
return nil;
}
self.acceptsWayPoints = @(acceptsWayPoints);
return self;
}
- (void)setAcceptsWayPoints:(nullable NSNumber<SDLBool> *)acceptsWayPoints {
[store sdl_setObject:acceptsWayPoints forName:SDLRPCParameterNameAcceptsWayPoints];
}
- (nullable NSNumber<SDLBool> *)acceptsWayPoints {
return [store sdl_objectForName:SDLRPCParameterNameAcceptsWayPoints ofClass:NSNumber.class error:nil];
}
@end
NS_ASSUME_NONNULL_END
|