summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2017-09-20 13:38:55 +0300
committerValerii <vmalkov@luxoft.com>2018-01-26 14:15:35 +0200
commit1739db146afe1d7d158ee6fcda5e5d99fed16bda (patch)
treed819efcfef63138ac0c26af5695b39712aa0f017
parent05b7ae032fb4161d15e64af31aaba4f9c9f23598 (diff)
downloadsdl_core-1739db146afe1d7d158ee6fcda5e5d99fed16bda.tar.gz
Update OnWayPointChange RPC logic according to proposal
-rw-r--r--src/components/application_manager/src/commands/mobile/on_way_point_change_notification.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/application_manager/src/commands/mobile/on_way_point_change_notification.cc b/src/components/application_manager/src/commands/mobile/on_way_point_change_notification.cc
index 0b24228810..51073d919f 100644
--- a/src/components/application_manager/src/commands/mobile/on_way_point_change_notification.cc
+++ b/src/components/application_manager/src/commands/mobile/on_way_point_change_notification.cc
@@ -46,6 +46,15 @@ OnWayPointChangeNotification::~OnWayPointChangeNotification() {}
void OnWayPointChangeNotification::Run() {
LOG4CXX_AUTO_TRACE(logger_);
+ if (!ValidateSmartObjectStrings(
+ (*message_)[strings::msg_params][strings::way_points])) {
+ LOG4CXX_ERROR(logger_, "Invalid notification. Ignored");
+ return;
+ }
+
+ application_manager_.SetWaypointsInfo(
+ (*message_)[strings::msg_params][strings::way_points]);
+
std::set<int32_t> subscribed_for_way_points =
application_manager_.GetAppsSubscribedForWayPoints();