[HOTFIX] revert handling ping and voice session until aasdk change

This commit is contained in:
Robert Judka 2020-08-26 22:35:40 -05:00
parent 50e077aa6e
commit ae66394b6b
2 changed files with 4 additions and 4 deletions

View File

@ -54,10 +54,10 @@ public:
void onShutdownRequest(const aasdk::proto::messages::ShutdownRequest& request) override;
void onShutdownResponse(const aasdk::proto::messages::ShutdownResponse& response) override;
void onNavigationFocusRequest(const aasdk::proto::messages::NavigationFocusRequest& request) override;
void onPingRequest(const aasdk::proto::messages::PingRequest& request) override;
// void onPingRequest(const aasdk::proto::messages::PingRequest& request) override; // TODO handling ping and voice session
void onPingResponse(const aasdk::proto::messages::PingResponse& response) override;
void onChannelError(const aasdk::error::Error& e) override;
void onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request) override;
// void onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request) override; // TODO handling ping and voice session
private:
using std::enable_shared_from_this<AndroidAutoEntity>::shared_from_this;

View File

@ -223,7 +223,7 @@ void AndroidAutoEntity::onNavigationFocusRequest(const aasdk::proto::messages::N
controlServiceChannel_->receive(this->shared_from_this());
}
void AndroidAutoEntity::onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request)
/* void AndroidAutoEntity::onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request)
{
OPENAUTO_LOG(info) << "[AndroidAutoEntity] Voice session request, type: " << (request.type()==1)?("START"):((request.type()==2)?("STOP"):("UNKNOWN"));
@ -243,7 +243,7 @@ void AndroidAutoEntity::onPingRequest(const aasdk::proto::messages::PingRequest&
promise->then([]() {}, std::bind(&AndroidAutoEntity::onChannelError, this->shared_from_this(), std::placeholders::_1));
controlServiceChannel_->sendPingResponse(response, std::move(promise));
controlServiceChannel_->receive(this->shared_from_this());
}
} */ // TODO handling ping and voice session
void AndroidAutoEntity::onPingResponse(const aasdk::proto::messages::PingResponse&)
{