diff options
author | Masato Ogawa <mogawa@xevo.com> | 2017-08-22 15:27:44 +0900 |
---|---|---|
committer | Masato Ogawa <mogawa@xevo.com> | 2017-08-22 15:27:44 +0900 |
commit | 947d293a9eab6b3ffd07ea46f0a7dc64c5ec8595 (patch) | |
tree | 9ce6d9156c3e5a8ac0d93ae44bd5d6ceff72b94c | |
parent | e7a22f7a4555f5c7e38c72b2840891c346c3933d (diff) | |
download | sdl_core-947d293a9eab6b3ffd07ea46f0a7dc64c5ec8595.tar.gz |
Move SendHapticData to request/response section
-rw-r--r-- | src/components/application_manager/src/mobile_command_factory.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/components/application_manager/src/mobile_command_factory.cc b/src/components/application_manager/src/mobile_command_factory.cc index f925a18217..413fc7a9f1 100644 --- a/src/components/application_manager/src/mobile_command_factory.cc +++ b/src/components/application_manager/src/mobile_command_factory.cc @@ -619,6 +619,17 @@ CommandSharedPtr MobileCommandFactory::CreateCommand( } break; } + case mobile_apis::FunctionID::SendHapticDataID: { + if ((*message)[strings::params][strings::message_type] == + static_cast<int>(application_manager::MessageType::kResponse)) { + command.reset( + new commands::SendHapticDataResponse(message, application_manager)); + } else { + command.reset( + new commands::SendHapticDataRequest(message, application_manager)); + } + break; + } case mobile_apis::FunctionID::OnButtonEventID: { command.reset(new commands::mobile::OnButtonEventNotification( message, application_manager)); @@ -704,17 +715,6 @@ CommandSharedPtr MobileCommandFactory::CreateCommand( message, application_manager); break; } - case mobile_apis::FunctionID::SendHapticDataID: { - if ((*message)[strings::params][strings::message_type] == - static_cast<int>(application_manager::MessageType::kResponse)) { - command.reset( - new commands::SendHapticDataResponse(message, application_manager)); - } else { - command.reset( - new commands::SendHapticDataRequest(message, application_manager)); - } - break; - } default: { (*message)[strings::params][strings::function_id] = static_cast<int32_t>(mobile_apis::FunctionID::GenericResponseID); |