![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ResponseSink.h>
Public Member Functions | |
ResponseSink (const std::shared_ptr< commonInterfaces::DavsRequest > &request, const std::string &workingDirectory) | |
virtual | ~ResponseSink ()=default |
std::shared_ptr< commonInterfaces::VendableArtifact > | getArtifact () |
std::string | getArtifactPath () |
bool | onHeader (const std::string &header) |
bool | parser (std::shared_ptr< DownloadChunkQueue > &downloadChunkQueue) |
Handle Multipart DAVS Responses.
alexaClientSDK::acsdkAssets::common::ResponseSink::ResponseSink | ( | const std::shared_ptr< commonInterfaces::DavsRequest > & | request, |
const std::string & | workingDirectory | ||
) |
Constructor.
|
virtualdefault |
Destructor.
std::shared_ptr<commonInterfaces::VendableArtifact> alexaClientSDK::acsdkAssets::common::ResponseSink::getArtifact | ( | ) |
get m_artifact
std::string alexaClientSDK::acsdkAssets::common::ResponseSink::getArtifactPath | ( | ) |
get the full path to the artifact if it's downloaded properly
bool alexaClientSDK::acsdkAssets::common::ResponseSink::onHeader | ( | const std::string & | header | ) |
When we receive a header line search for boundary. If we find the boundary set m_boundary and notify waiting threads.
header | the header line which we search for the boundary. |
bool alexaClientSDK::acsdkAssets::common::ResponseSink::parser | ( | std::shared_ptr< DownloadChunkQueue > & | downloadChunkQueue | ) |
Wrapper around the multipart Parser, used to set the parsers callbacks and feed it data.
downloadChunkQueue | handles streaming data chunk by chunk. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0