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

#import "SDLOnWayPointChange.h"

#import "NSMutableDictionary+Store.h"
#import "SDLLocationDetails.h"
#import "SDLRPCParameterNames.h"
#import "SDLRPCFunctionNames.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLOnWayPointChange

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (instancetype)init {
    if (self = [super initWithName:SDLRPCFunctionNameOnWayPointChange]) {
    }
    return self;
}
#pragma clang diagnostic pop

- (void)setWaypoints:(NSArray<SDLLocationDetails *> *)waypoints {
    [self.parameters sdl_setObject:waypoints forName:SDLRPCParameterNameWayPoints];
}

- (NSArray<SDLLocationDetails *> *)waypoints {
    NSError *error = nil;
    return [self.parameters sdl_objectsForName:SDLRPCParameterNameWayPoints ofClass:SDLLocationDetails.class error:&error];
}

@end

NS_ASSUME_NONNULL_END