summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_response.cc
blob: fda70dcd9f54a433c710446f22814f9e09ab21a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "rc_rpc_plugin/commands/mobile/button_press_response.h"
#include "application_manager/rpc_service.h"

namespace rc_rpc_plugin {
namespace commands {

ButtonPressResponse::ButtonPressResponse(
    const app_mngr::commands::MessageSharedPtr& message,
    app_mngr::ApplicationManager& application_manager)
    : app_mngr::commands::CommandResponseImpl(message, application_manager) {}

ButtonPressResponse::~ButtonPressResponse(){}

void ButtonPressResponse::Run() {
    LOG4CXX_AUTO_TRACE(logger_);
    application_manager_.GetRPCService().SendMessageToMobile(message_);
}

}  // namespace commands
}  // namespace rc_rpc_plugin