summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-12-02 16:35:21 -0500
committerGitHub <noreply@github.com>2016-12-02 16:35:21 -0500
commit2eebf48b3dde164ee0e44d0c41f853443ac323fa (patch)
tree606508dfa14974ef9cafb0ede4bbc15c9d1b202e
parenta51ff3a30aea74cff745bd4e22e9880b563717fe (diff)
parent7cf4a0d9057fc03c3cb142d64a5d17e5affcea8b (diff)
downloadsdl_ios-2eebf48b3dde164ee0e44d0c41f853443ac323fa.tar.gz
Merge pull request #476 from smartdevicelink/hotfix/issue_475
Added in missing response & notification dispatchers for waypoints.
-rw-r--r--SmartDeviceLink/SDLGetWaypoints.h8
-rw-r--r--SmartDeviceLink/SDLGetWaypoints.m11
-rw-r--r--SmartDeviceLink/SDLGetWaypointsResponse.h7
-rw-r--r--SmartDeviceLink/SDLGetWaypointsResponse.m7
-rw-r--r--SmartDeviceLink/SDLNotificationConstants.h4
-rw-r--r--SmartDeviceLink/SDLNotificationConstants.m9
-rw-r--r--SmartDeviceLink/SDLNotificationDispatcher.m18
-rw-r--r--SmartDeviceLink/SDLOnWaypointChange.h8
-rw-r--r--SmartDeviceLink/SDLOnWaypointChange.m6
-rw-r--r--SmartDeviceLink/SDLProxyListener.h8
-rw-r--r--SmartDeviceLink/SDLSubscribeWaypoints.h7
-rw-r--r--SmartDeviceLink/SDLSubscribeWaypoints.m7
-rw-r--r--SmartDeviceLink/SDLSubscribeWaypointsResponse.h8
-rw-r--r--SmartDeviceLink/SDLSubscribeWaypointsResponse.m6
-rw-r--r--SmartDeviceLink/SDLUnsubscribeWaypoints.h7
-rw-r--r--SmartDeviceLink/SDLUnsubscribeWaypoints.m5
-rw-r--r--SmartDeviceLink/SDLUnsubscribeWaypointsResponse.h7
-rw-r--r--SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m6
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m4
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnWaypointChangeSpec.m8
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetWaypointsSpec.m6
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetWaypointsResponseSpec.m8
22 files changed, 136 insertions, 29 deletions
diff --git a/SmartDeviceLink/SDLGetWaypoints.h b/SmartDeviceLink/SDLGetWaypoints.h
index e14ace9e5..6a2de931c 100644
--- a/SmartDeviceLink/SDLGetWaypoints.h
+++ b/SmartDeviceLink/SDLGetWaypoints.h
@@ -5,7 +5,8 @@
@class SDLWaypointType;
-@interface SDLGetWaypoints : SDLRPCRequest
+
+@interface SDLGetWayPoints : SDLRPCRequest
- (instancetype)initWithType:(SDLWaypointType *)type;
@@ -18,3 +19,8 @@
@property (strong, nonatomic) SDLWaypointType *waypointType;
@end
+
+__deprecated_msg("Use SDLGetWayPoints instead")
+@interface SDLGetWaypoints : SDLGetWayPoints
+
+@end
diff --git a/SmartDeviceLink/SDLGetWaypoints.m b/SmartDeviceLink/SDLGetWaypoints.m
index 0a479c865..9afb83f99 100644
--- a/SmartDeviceLink/SDLGetWaypoints.m
+++ b/SmartDeviceLink/SDLGetWaypoints.m
@@ -6,7 +6,7 @@
#import "SDLNames.h"
#import "SDLWaypointType.h"
-@implementation SDLGetWaypoints
+@implementation SDLGetWayPoints
- (instancetype)init {
if (self = [super initWithName:NAMES_GetWaypoints]) {
@@ -20,9 +20,9 @@
if (!self) {
return nil;
}
-
+
self.waypointType = type;
-
+
return self;
}
@@ -44,3 +44,8 @@
}
@end
+
+@implementation SDLGetWaypoints
+
+@end
+
diff --git a/SmartDeviceLink/SDLGetWaypointsResponse.h b/SmartDeviceLink/SDLGetWaypointsResponse.h
index 94d449886..a2456686c 100644
--- a/SmartDeviceLink/SDLGetWaypointsResponse.h
+++ b/SmartDeviceLink/SDLGetWaypointsResponse.h
@@ -5,7 +5,7 @@
@class SDLLocationDetails;
-@interface SDLGetWaypointsResponse : SDLRPCResponse
+@interface SDLGetWayPointsResponse : SDLRPCResponse
/**
* @abstract Array of waypoints
@@ -17,3 +17,8 @@
@property (strong) NSArray<SDLLocationDetails *> *waypoints;
@end
+
+__deprecated_msg("Use SDLGetWayPointsResponse instead")
+@interface SDLGetWaypointsResponse : SDLGetWayPointsResponse
+
+@end
diff --git a/SmartDeviceLink/SDLGetWaypointsResponse.m b/SmartDeviceLink/SDLGetWaypointsResponse.m
index 9baa3b414..c59481226 100644
--- a/SmartDeviceLink/SDLGetWaypointsResponse.m
+++ b/SmartDeviceLink/SDLGetWaypointsResponse.m
@@ -4,7 +4,7 @@
#import "SDLGetWaypointsResponse.h"
#import "SDLNames.h"
-@implementation SDLGetWaypointsResponse
+@implementation SDLGetWayPointsResponse
- (instancetype)init {
if (self = [super initWithName:NAMES_GetWaypoints]) {
@@ -25,3 +25,8 @@
}
@end
+
+@implementation SDLGetWaypointsResponse
+
+@end
+
diff --git a/SmartDeviceLink/SDLNotificationConstants.h b/SmartDeviceLink/SDLNotificationConstants.h
index ee1e163cd..63fad1b25 100644
--- a/SmartDeviceLink/SDLNotificationConstants.h
+++ b/SmartDeviceLink/SDLNotificationConstants.h
@@ -79,6 +79,7 @@ extern SDLNotificationName const SDLDidReceiveEndAudioPassThruResponse;
extern SDLNotificationName const SDLDidReceiveGenericResponse;
extern SDLNotificationName const SDLDidReceiveGetDTCsResponse;
extern SDLNotificationName const SDLDidReceiveGetVehicleDataResponse;
+extern SDLNotificationName const SDLDidReceiveGetWaypointsResponse;
extern SDLNotificationName const SDLDidReceiveListFilesResponse;
extern SDLNotificationName const SDLDidReceivePerformAudioPassThruResponse;
extern SDLNotificationName const SDLDidReceivePerformInteractionResponse;
@@ -98,11 +99,13 @@ extern SDLNotificationName const SDLDidReceiveSliderResponse;
extern SDLNotificationName const SDLDidReceiveSpeakResponse;
extern SDLNotificationName const SDLDidReceiveSubscribeButtonResponse;
extern SDLNotificationName const SDLDidReceiveSubscribeVehicleDataResponse;
+extern SDLNotificationName const SDLDidReceiveSubscribeWaypointsResponse;
extern SDLNotificationName const SDLDidReceiveSyncPDataResponse;
extern SDLNotificationName const SDLDidReceiveUpdateTurnListResponse;
extern SDLNotificationName const SDLDidReceiveUnregisterAppInterfaceResponse;
extern SDLNotificationName const SDLDidReceiveUnsubscribeButtonResponse;
extern SDLNotificationName const SDLDidReceiveUnsubscribeVehicleDataResponse;
+extern SDLNotificationName const SDLDidReceiveUnsubscribeWaypointsResponse;
/**
* NSNotification names associated with specific RPC notifications.
@@ -126,6 +129,7 @@ extern SDLNotificationName const SDLDidReceiveSystemRequestNotification;
extern SDLNotificationName const SDLDidChangeTurnByTurnStateNotification;
extern SDLNotificationName const SDLDidReceiveTouchEventNotification;
extern SDLNotificationName const SDLDidReceiveVehicleDataNotification;
+extern SDLNotificationName const SDLDidReceiveWaypointNotification;
@interface SDLNotificationConstants : NSObject
diff --git a/SmartDeviceLink/SDLNotificationConstants.m b/SmartDeviceLink/SDLNotificationConstants.m
index 145dcb41b..8e02d6647 100644
--- a/SmartDeviceLink/SDLNotificationConstants.m
+++ b/SmartDeviceLink/SDLNotificationConstants.m
@@ -37,6 +37,7 @@ SDLNotificationName const SDLDidReceiveEndAudioPassThruResponse = @"com.sdl.resp
SDLNotificationName const SDLDidReceiveGenericResponse = @"com.sdl.response.generic";
SDLNotificationName const SDLDidReceiveGetDTCsResponse = @"com.sdl.response.getDTCs";
SDLNotificationName const SDLDidReceiveGetVehicleDataResponse = @"com.sdl.response.getVehicleData";
+SDLNotificationName const SDLDidReceiveGetWaypointsResponse = @"com.sdl.response.getWaypoints";
SDLNotificationName const SDLDidReceiveListFilesResponse = @"com.sdl.response.listFiles";
SDLNotificationName const SDLDidReceivePerformAudioPassThruResponse = @"com.sdl.response.performAudioPassThru";
SDLNotificationName const SDLDidReceivePerformInteractionResponse = @"com.sdl.response.performInteraction";
@@ -56,11 +57,13 @@ SDLNotificationName const SDLDidReceiveSliderResponse = @"com.sdl.response.slide
SDLNotificationName const SDLDidReceiveSpeakResponse = @"com.sdl.response.speak";
SDLNotificationName const SDLDidReceiveSubscribeButtonResponse = @"com.sdl.response.subscribeButton";
SDLNotificationName const SDLDidReceiveSubscribeVehicleDataResponse = @"com.sdl.response.subscribeVehicleData";
+SDLNotificationName const SDLDidReceiveSubscribeWaypointsResponse = @"com.sdl.response.subscribeWaypoints";
SDLNotificationName const SDLDidReceiveSyncPDataResponse = @"com.sdl.response.syncPData";
SDLNotificationName const SDLDidReceiveUpdateTurnListResponse = @"com.sdl.response.updateTurnList";
SDLNotificationName const SDLDidReceiveUnregisterAppInterfaceResponse = @"com.sdl.response.unregisterAppInterface";
SDLNotificationName const SDLDidReceiveUnsubscribeButtonResponse = @"com.sdl.response.unsubscribeButton";
SDLNotificationName const SDLDidReceiveUnsubscribeVehicleDataResponse = @"com.sdl.response.unsubscribeVehicleData";
+SDLNotificationName const SDLDidReceiveUnsubscribeWaypointsResponse = @"com.sdl.response.unsubscribeWaypoints";
#pragma mark - RPC Notifications
SDLNotificationName const SDLDidChangeDriverDistractionStateNotification = @"com.sdl.notification.changeDriverDistractionStateNotification";
@@ -80,6 +83,7 @@ SDLNotificationName const SDLDidReceiveSystemRequestNotification = @"com.sdl.not
SDLNotificationName const SDLDidChangeTurnByTurnStateNotification = @"com.sdl.notification.changeTurnByTurnState";
SDLNotificationName const SDLDidReceiveTouchEventNotification = @"com.sdl.notification.touchEvent";
SDLNotificationName const SDLDidReceiveVehicleDataNotification = @"com.sdl.notification.vehicleData";
+SDLNotificationName const SDLDidReceiveWaypointNotification = @"com.sdl.notification.waypoint";
@implementation SDLNotificationConstants
@@ -102,6 +106,7 @@ SDLNotificationName const SDLDidReceiveVehicleDataNotification = @"com.sdl.notif
SDLDidReceiveGenericResponse,
SDLDidReceiveGetDTCsResponse,
SDLDidReceiveGetVehicleDataResponse,
+ SDLDidReceiveGetWaypointsResponse,
SDLDidReceiveListFilesResponse,
SDLDidReceivePerformAudioPassThruResponse,
SDLDidReceivePerformInteractionResponse,
@@ -121,11 +126,13 @@ SDLNotificationName const SDLDidReceiveVehicleDataNotification = @"com.sdl.notif
SDLDidReceiveSpeakResponse,
SDLDidReceiveSubscribeButtonResponse,
SDLDidReceiveSubscribeVehicleDataResponse,
+ SDLDidReceiveSubscribeWaypointsResponse,
SDLDidReceiveSyncPDataResponse,
SDLDidReceiveUpdateTurnListResponse,
SDLDidReceiveUnregisterAppInterfaceResponse,
SDLDidReceiveUnsubscribeButtonResponse,
- SDLDidReceiveUnsubscribeVehicleDataResponse];
+ SDLDidReceiveUnsubscribeVehicleDataResponse,
+ SDLDidReceiveUnsubscribeWaypointsResponse];
}
+ (NSArray<SDLNotificationName> *)allButtonEventNotifications {
diff --git a/SmartDeviceLink/SDLNotificationDispatcher.m b/SmartDeviceLink/SDLNotificationDispatcher.m
index 48b9f525f..cae44a5fd 100644
--- a/SmartDeviceLink/SDLNotificationDispatcher.m
+++ b/SmartDeviceLink/SDLNotificationDispatcher.m
@@ -146,6 +146,10 @@ NS_ASSUME_NONNULL_BEGIN
[self postRPCResponseNotification:SDLDidReceiveGetVehicleDataResponse response:response];
}
+- (void)onGetWayPointsResponse:(SDLGetWaypointsResponse *)response {
+ [self postRPCResponseNotification:SDLDidReceiveGetWaypointsResponse response:response];
+}
+
- (void)onListFilesResponse:(SDLListFilesResponse *)response {
[self postRPCResponseNotification:SDLDidReceiveListFilesResponse response:response];
}
@@ -222,6 +226,10 @@ NS_ASSUME_NONNULL_BEGIN
[self postRPCResponseNotification:SDLDidReceiveSubscribeVehicleDataResponse response:response];
}
+- (void)onSubscribeWayPointsResponse:(SDLSubscribeWaypointsResponse *)response {
+ [self postRPCResponseNotification:SDLDidReceiveSubscribeWaypointsResponse response:response];
+}
+
- (void)onSyncPDataResponse:(SDLSyncPDataResponse *)response {
[self postRPCResponseNotification:SDLDidReceiveSyncPDataResponse response:response];
}
@@ -242,6 +250,10 @@ NS_ASSUME_NONNULL_BEGIN
[self postRPCResponseNotification:SDLDidReceiveUnsubscribeVehicleDataResponse response:response];
}
+- (void)onUnsubscribeWayPointsResponse:(SDLUnsubscribeWaypointsResponse *)response {
+ [self postRPCResponseNotification:SDLDidReceiveUnsubscribeWaypointsResponse response:response];
+}
+
- (void)onOnAppInterfaceUnregistered:(SDLOnAppInterfaceUnregistered *)notification {
[self postRPCNotificationNotification:SDLDidReceiveAppUnregisteredNotification notification:notification];
}
@@ -306,8 +318,12 @@ NS_ASSUME_NONNULL_BEGIN
[self postRPCNotificationNotification:SDLDidReceiveVehicleDataNotification notification:notification];
}
+- (void)onOnWayPointChange:(SDLOnWaypointChange *)notification {
+ [self postRPCNotificationNotification:SDLDidReceiveWaypointNotification notification:notification];
+}
+
#pragma clang diagnostic pop
@end
-NS_ASSUME_NONNULL_END \ No newline at end of file
+NS_ASSUME_NONNULL_END
diff --git a/SmartDeviceLink/SDLOnWaypointChange.h b/SmartDeviceLink/SDLOnWaypointChange.h
index fb7daabd3..b31fa586e 100644
--- a/SmartDeviceLink/SDLOnWaypointChange.h
+++ b/SmartDeviceLink/SDLOnWaypointChange.h
@@ -5,7 +5,7 @@
@class SDLLocationDetails;
-@interface SDLOnWaypointChange : SDLRPCNotification
+@interface SDLOnWayPointChange : SDLRPCNotification
/**
* @abstract Location address for display purposes only.
@@ -15,3 +15,9 @@
@property (copy, nonatomic) NSArray<SDLLocationDetails *> *waypoints;
@end
+
+__deprecated_msg("Use SDLOnWayPointChange instead")
+@interface SDLOnWaypointChange : SDLOnWayPointChange
+
+@end
+
diff --git a/SmartDeviceLink/SDLOnWaypointChange.m b/SmartDeviceLink/SDLOnWaypointChange.m
index 7fb77369a..a18975bc1 100644
--- a/SmartDeviceLink/SDLOnWaypointChange.m
+++ b/SmartDeviceLink/SDLOnWaypointChange.m
@@ -5,7 +5,7 @@
#import "SDLNames.h"
-@implementation SDLOnWaypointChange
+@implementation SDLOnWayPointChange
- (instancetype)init {
if (self = [super initWithName:NAMES_OnWaypointChange]) {
@@ -26,3 +26,7 @@
}
@end
+
+@implementation SDLOnWaypointChange
+
+@end
diff --git a/SmartDeviceLink/SDLProxyListener.h b/SmartDeviceLink/SDLProxyListener.h
index 4a1a1ac09..9b6f460f4 100644
--- a/SmartDeviceLink/SDLProxyListener.h
+++ b/SmartDeviceLink/SDLProxyListener.h
@@ -20,6 +20,7 @@
@class SDLGenericResponse;
@class SDLGetDTCsResponse;
@class SDLGetVehicleDataResponse;
+@class SDLGetWaypointsResponse;
@class SDLListFilesResponse;
@class SDLOnAppInterfaceUnregistered;
@class SDLOnAudioPassThru;
@@ -40,6 +41,7 @@
@class SDLOnTBTClientState;
@class SDLOnTouchEvent;
@class SDLOnVehicleData;
+@class SDLOnWaypointChange;
@class SDLPerformAudioPassThruResponse;
@class SDLPerformInteractionResponse;
@class SDLPutFileResponse;
@@ -58,11 +60,13 @@
@class SDLSpeakResponse;
@class SDLSubscribeButtonResponse;
@class SDLSubscribeVehicleDataResponse;
+@class SDLSubscribeWaypointsResponse;
@class SDLSyncPDataResponse;
@class SDLUpdateTurnListResponse;
@class SDLUnregisterAppInterfaceResponse;
@class SDLUnsubscribeButtonResponse;
@class SDLUnsubscribeVehicleDataResponse;
+@class SDLUnsubscribeWaypointsResponse;
@protocol SDLProxyListener <NSObject>
@@ -92,6 +96,7 @@
- (void)onGenericResponse:(SDLGenericResponse *)response;
- (void)onGetDTCsResponse:(SDLGetDTCsResponse *)response;
- (void)onGetVehicleDataResponse:(SDLGetVehicleDataResponse *)response;
+- (void)onGetWayPointsResponse:(SDLGetWaypointsResponse *)response;
- (void)onListFilesResponse:(SDLListFilesResponse *)response;
- (void)onReceivedLockScreenIcon:(UIImage *)icon;
- (void)onOnAppInterfaceUnregistered:(SDLOnAppInterfaceUnregistered *)notification;
@@ -110,6 +115,7 @@
- (void)onOnTBTClientState:(SDLOnTBTClientState *)notification;
- (void)onOnTouchEvent:(SDLOnTouchEvent *)notification;
- (void)onOnVehicleData:(SDLOnVehicleData *)notification;
+- (void)onOnWayPointChange:(SDLOnWaypointChange *)notification;
- (void)onPerformAudioPassThruResponse:(SDLPerformAudioPassThruResponse *)response;
- (void)onPerformInteractionResponse:(SDLPerformInteractionResponse *)response;
- (void)onPutFileResponse:(SDLPutFileResponse *)response;
@@ -128,10 +134,12 @@
- (void)onSpeakResponse:(SDLSpeakResponse *)response;
- (void)onSubscribeButtonResponse:(SDLSubscribeButtonResponse *)response;
- (void)onSubscribeVehicleDataResponse:(SDLSubscribeVehicleDataResponse *)response;
+- (void)onSubscribeWayPointsResponse:(SDLSubscribeWaypointsResponse *)response;
- (void)onSyncPDataResponse:(SDLSyncPDataResponse *)response;
- (void)onUpdateTurnListResponse:(SDLUpdateTurnListResponse *)response;
- (void)onUnregisterAppInterfaceResponse:(SDLUnregisterAppInterfaceResponse *)response;
- (void)onUnsubscribeButtonResponse:(SDLUnsubscribeButtonResponse *)response;
- (void)onUnsubscribeVehicleDataResponse:(SDLUnsubscribeVehicleDataResponse *)response;
+- (void)onUnsubscribeWayPointsResponse:(SDLUnsubscribeWaypointsResponse *)response;
@end
diff --git a/SmartDeviceLink/SDLSubscribeWaypoints.h b/SmartDeviceLink/SDLSubscribeWaypoints.h
index b5127d00e..46ce2531a 100644
--- a/SmartDeviceLink/SDLSubscribeWaypoints.h
+++ b/SmartDeviceLink/SDLSubscribeWaypoints.h
@@ -10,7 +10,12 @@
* @see SDLUnsubscribeWaypoints
*
*/
+@interface SDLSubscribeWayPoints : SDLRPCRequest
-@interface SDLSubscribeWaypoints : SDLRPCRequest
+@end
+
+__deprecated_msg("Use SDLSubscribeWayPoints instead")
+@interface SDLSubscribeWaypoints : SDLSubscribeWayPoints
@end
+
diff --git a/SmartDeviceLink/SDLSubscribeWaypoints.m b/SmartDeviceLink/SDLSubscribeWaypoints.m
index 8c22da383..f043c6771 100644
--- a/SmartDeviceLink/SDLSubscribeWaypoints.m
+++ b/SmartDeviceLink/SDLSubscribeWaypoints.m
@@ -4,7 +4,7 @@
#import "SDLSubscribeWaypoints.h"
#import "SDLNames.h"
-@implementation SDLSubscribeWaypoints
+@implementation SDLSubscribeWayPoints
- (instancetype)init {
if (self = [super initWithName:NAMES_SubscribeWaypoints]) {
@@ -13,3 +13,8 @@
}
@end
+
+@implementation SDLSubscribeWaypoints
+
+@end
+
diff --git a/SmartDeviceLink/SDLSubscribeWaypointsResponse.h b/SmartDeviceLink/SDLSubscribeWaypointsResponse.h
index 9d4cfd967..02a9febc3 100644
--- a/SmartDeviceLink/SDLSubscribeWaypointsResponse.h
+++ b/SmartDeviceLink/SDLSubscribeWaypointsResponse.h
@@ -3,6 +3,12 @@
#import "SDLRPCResponse.h"
-@interface SDLSubscribeWaypointsResponse : SDLRPCResponse
+@interface SDLSubscribeWayPointsResponse : SDLRPCResponse
@end
+
+__deprecated_msg("Use SDLSubscribeWayPointsResponse instead")
+@interface SDLSubscribeWaypointsResponse : SDLSubscribeWayPointsResponse
+
+@end
+
diff --git a/SmartDeviceLink/SDLSubscribeWaypointsResponse.m b/SmartDeviceLink/SDLSubscribeWaypointsResponse.m
index 50979cd9f..11f066d11 100644
--- a/SmartDeviceLink/SDLSubscribeWaypointsResponse.m
+++ b/SmartDeviceLink/SDLSubscribeWaypointsResponse.m
@@ -4,7 +4,7 @@
#import "SDLSubscribeWaypointsResponse.h"
#import "SDLNames.h"
-@implementation SDLSubscribeWaypointsResponse
+@implementation SDLSubscribeWayPointsResponse
- (instancetype)init {
if (self = [super initWithName:NAMES_SubscribeWaypoints]) {
@@ -13,3 +13,7 @@
}
@end
+
+@implementation SDLSubscribeWaypointsResponse
+
+@end
diff --git a/SmartDeviceLink/SDLUnsubscribeWaypoints.h b/SmartDeviceLink/SDLUnsubscribeWaypoints.h
index ff7b15296..2b2be9f7b 100644
--- a/SmartDeviceLink/SDLUnsubscribeWaypoints.h
+++ b/SmartDeviceLink/SDLUnsubscribeWaypoints.h
@@ -3,6 +3,11 @@
#import "SDLRPCRequest.h"
-@interface SDLUnsubscribeWaypoints : SDLRPCRequest
+@interface SDLUnsubscribeWayPoints : SDLRPCRequest
+
+@end
+
+__deprecated_msg("Use SDLUnsubscribeWayPoints instead")
+@interface SDLUnsubscribeWaypoints : SDLUnsubscribeWayPoints
@end
diff --git a/SmartDeviceLink/SDLUnsubscribeWaypoints.m b/SmartDeviceLink/SDLUnsubscribeWaypoints.m
index 9b5dfc54f..34ead6223 100644
--- a/SmartDeviceLink/SDLUnsubscribeWaypoints.m
+++ b/SmartDeviceLink/SDLUnsubscribeWaypoints.m
@@ -4,7 +4,7 @@
#import "SDLUnsubscribeWaypoints.h"
#import "SDLNames.h"
-@implementation SDLUnsubscribeWaypoints
+@implementation SDLUnsubscribeWayPoints
- (instancetype)init {
if (self = [super initWithName:NAMES_UnsubscribeWaypoints]) {
@@ -12,5 +12,8 @@
return self;
}
+@end
+
+@implementation SDLUnsubscribeWaypoints
@end
diff --git a/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.h b/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.h
index e64cc2d73..b0c03e6e5 100644
--- a/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.h
+++ b/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.h
@@ -3,6 +3,11 @@
#import "SDLRPCResponse.h"
-@interface SDLUnsubscribeWaypointsResponse : SDLRPCResponse
+@interface SDLUnsubscribeWayPointsResponse : SDLRPCResponse
+
+@end
+
+__deprecated_msg("Use SDLUnsubscribeWayPointsResponse instead")
+@interface SDLUnsubscribeWaypointsResponse : SDLUnsubscribeWayPointsResponse
@end
diff --git a/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m b/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m
index 49f0f7f21..e4aaf9a72 100644
--- a/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m
+++ b/SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m
@@ -5,7 +5,7 @@
#import "SDLNames.h"
-@implementation SDLUnsubscribeWaypointsResponse
+@implementation SDLUnsubscribeWayPointsResponse
- (instancetype)init {
if (self = [super initWithName:NAMES_UnsubscribeWaypoints]) {
@@ -14,3 +14,7 @@
}
@end
+
+@implementation SDLUnsubscribeWaypointsResponse
+
+@end
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m
index ba3b2f1c1..f43a8535b 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m
@@ -38,6 +38,7 @@ describe(@"a notification dispatcher", ^{
expect(@([testDispatcher respondsToSelector:@selector(onGenericResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onGetDTCsResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onGetVehicleDataResponse:)])).to(beTruthy());
+ expect(@([testDispatcher respondsToSelector:@selector(onGetWayPointsResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onReceivedLockScreenIcon:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onOnAppInterfaceUnregistered:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onOnAudioPassThru:)])).to(beTruthy());
@@ -53,6 +54,7 @@ describe(@"a notification dispatcher", ^{
expect(@([testDispatcher respondsToSelector:@selector(onOnTBTClientState:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onOnTouchEvent:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onOnVehicleData:)])).to(beTruthy());
+ expect(@([testDispatcher respondsToSelector:@selector(onOnWayPointChange:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onPerformAudioPassThruResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onPerformInteractionResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onPutFileResponse:)])).to(beTruthy());
@@ -71,11 +73,13 @@ describe(@"a notification dispatcher", ^{
expect(@([testDispatcher respondsToSelector:@selector(onSpeakResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onSubscribeButtonResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onSubscribeVehicleDataResponse:)])).to(beTruthy());
+ expect(@([testDispatcher respondsToSelector:@selector(onSubscribeWayPointsResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onSyncPDataResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onUpdateTurnListResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onUnregisterAppInterfaceResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onUnsubscribeButtonResponse:)])).to(beTruthy());
expect(@([testDispatcher respondsToSelector:@selector(onUnsubscribeVehicleDataResponse:)])).to(beTruthy());
+ expect(@([testDispatcher respondsToSelector:@selector(onUnsubscribeWayPointsResponse:)])).to(beTruthy());
});
describe(@"when told to post a notification", ^{
diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnWaypointChangeSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnWaypointChangeSpec.m
index b08d8bb5d..1bdf53442 100644
--- a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnWaypointChangeSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnWaypointChangeSpec.m
@@ -17,12 +17,12 @@
QuickSpecBegin(SDLOnWaypointChangeSpec)
describe(@"Getter/Setter Tests", ^ {
- __block SDLOnWaypointChange* testNotification = nil;
+ __block SDLOnWayPointChange* testNotification = nil;
__block NSArray<SDLLocationDetails *>* someWaypoints = nil;
describe(@"when initialized with init", ^{
beforeEach(^{
- testNotification = [[SDLOnWaypointChange alloc] init];
+ testNotification = [[SDLOnWayPointChange alloc] init];
});
context(@"when parameters are set correctly", ^{
@@ -71,7 +71,7 @@ describe(@"Getter/Setter Tests", ^ {
NAMES_operation_name:NAMES_OnWaypointChange
};
- testNotification = [[SDLOnWaypointChange alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
+ testNotification = [[SDLOnWayPointChange alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
});
// Since all the properties are immutable, a copy should be executed as a retain, which means they should be identical
@@ -89,7 +89,7 @@ describe(@"Getter/Setter Tests", ^ {
}
};
- testNotification = [[SDLOnWaypointChange alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
+ testNotification = [[SDLOnWayPointChange alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
});
it(@"should return nil for waypoints", ^{
diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetWaypointsSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetWaypointsSpec.m
index 579d63935..5edd91078 100644
--- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetWaypointsSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetWaypointsSpec.m
@@ -15,7 +15,7 @@ QuickSpecBegin(SDLGetWaypointsSpec)
describe(@"Getter/Setter Tests", ^ {
it(@"Should set and get correctly", ^ {
- SDLGetWaypoints* testRequest = [[SDLGetWaypoints alloc] init];
+ SDLGetWayPoints* testRequest = [[SDLGetWayPoints alloc] init];
testRequest.waypointType = [SDLWaypointType ALL];
@@ -27,13 +27,13 @@ describe(@"Getter/Setter Tests", ^ {
@{NAMES_parameters:
@{NAMES_waypointType:[SDLWaypointType ALL]},
NAMES_operation_name:NAMES_GetWaypoints}} mutableCopy];
- SDLGetWaypoints* testRequest = [[SDLGetWaypoints alloc] initWithDictionary:dict];
+ SDLGetWayPoints* testRequest = [[SDLGetWayPoints alloc] initWithDictionary:dict];
expect(testRequest.waypointType).to(equal([SDLWaypointType ALL]));
});
it(@"Should return nil if not set", ^ {
- SDLGetWaypoints* testRequest = [[SDLGetWaypoints alloc] init];
+ SDLGetWayPoints* testRequest = [[SDLGetWayPoints alloc] init];
expect(testRequest.waypointType).to(beNil());
});
diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetWaypointsResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetWaypointsResponseSpec.m
index 4754fe4e8..d1f2a0ab3 100644
--- a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetWaypointsResponseSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetWaypointsResponseSpec.m
@@ -17,12 +17,12 @@
QuickSpecBegin(SDLGetWaypointsResponseSpec)
describe(@"Getter/Setter Tests", ^ {
- __block SDLGetWaypointsResponse* testResponse = nil;
+ __block SDLGetWayPointsResponse* testResponse = nil;
__block NSArray<SDLLocationDetails *>* someWaypoints = nil;
describe(@"when initialized with init", ^{
beforeEach(^{
- testResponse = [[SDLGetWaypointsResponse alloc] init];
+ testResponse = [[SDLGetWayPointsResponse alloc] init];
});
context(@"when parameters are set correctly", ^{
@@ -70,7 +70,7 @@ describe(@"Getter/Setter Tests", ^ {
}
};
- testResponse = [[SDLGetWaypointsResponse alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
+ testResponse = [[SDLGetWayPointsResponse alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
});
// Since all the properties are immutable, a copy should be executed as a retain, which means they should be identical
@@ -88,7 +88,7 @@ describe(@"Getter/Setter Tests", ^ {
}
};
- testResponse = [[SDLGetWaypointsResponse alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
+ testResponse = [[SDLGetWayPointsResponse alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];
});
it(@"should return nil for waypoints", ^{