summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLGetWaypointsResponse.m
blob: 1ac361ccf57ffa5b2eca7675ba790cd6d894df95 (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
//  SDLGetWaypointsResponse.m
//

#import "SDLGetWaypointsResponse.h"

#import "NSMutableDictionary+Store.h"
#import "SDLLocationDetails.h"
#import "SDLNames.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLGetWayPointsResponse

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

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

- (nullable NSArray<SDLLocationDetails *> *)waypoints {
    return [parameters sdl_objectsForName:SDLNameWaypoints ofClass:SDLLocationDetails.class];
}

@end

NS_ASSUME_NONNULL_END