#include <DavsClient.h>
|
| ~DavsClient () override=default |
|
bool | getIdleState () const |
|
void | setIdleState (bool idleState) |
|
|
std::string | registerArtifact (std::shared_ptr< commonInterfaces::DavsRequest > artifactRequest, std::shared_ptr< davsInterfaces::DavsDownloadCallbackInterface > downloadCallback, std::shared_ptr< davsInterfaces::DavsCheckCallbackInterface > checkCallback, bool downloadImmediately) override |
|
void | deregisterArtifact (const std::string &requestUUID) override |
|
std::string | downloadOnce (std::shared_ptr< commonInterfaces::DavsRequest > artifactRequest, std::shared_ptr< davsInterfaces::DavsDownloadCallbackInterface > downloadCallback, std::shared_ptr< davsInterfaces::DavsCheckCallbackInterface > checkCallback) override |
|
void | enableAutoUpdate (const std::string &requestUUID, bool enable) override |
|
Public Member Functions inherited from alexaClientSDK::acsdkAssets::davsInterfaces::ArtifactHandlerInterface |
virtual | ~ArtifactHandlerInterface ()=default |
|
virtual std::string | registerArtifact (std::shared_ptr< commonInterfaces::DavsRequest > artifactRequest, std::shared_ptr< DavsDownloadCallbackInterface > downloadCallback, std::shared_ptr< DavsCheckCallbackInterface > checkCallback, bool downloadImmediately)=0 |
|
virtual std::string | downloadOnce (std::shared_ptr< commonInterfaces::DavsRequest > artifactRequest, std::shared_ptr< DavsDownloadCallbackInterface > downloadCallback, std::shared_ptr< DavsCheckCallbackInterface > checkCallback)=0 |
|
virtual | ~InternetConnectionObserverInterface ()=default |
|
◆ ~DavsClient()
alexaClientSDK::acsdkAssets::davs::DavsClient::~DavsClient |
( |
| ) |
|
|
overridedefault |
◆ checkAndUpdateArtifactGroupFromJson()
void alexaClientSDK::acsdkAssets::davs::DavsClient::checkAndUpdateArtifactGroupFromJson |
( |
const std::string & |
jsonArtifactList | ) |
|
AuthDelegate that curlWrapper will use to get the Authentication Token.
◆ checkAndUpdateArtifactGroupVector()
void alexaClientSDK::acsdkAssets::davs::DavsClient::checkAndUpdateArtifactGroupVector |
( |
const std::vector< DavsClient::ArtifactGroup > & |
artifactVector | ) |
|
AuthDelegate that curlWrapper will use to get the Authentication Token.
◆ create()
Creates a DAVS Client given a working directory.
- Parameters
-
workingDirectory | REQUIRED, place to store the temporary davs files, will be wiped on initialization. |
authDelegate | REQUIRED, the Authentication Delegate to generate the authentication token |
wifiMonitor | REQUIRED, the InternetConnectionMonitor that Davs client will subscribe to. It will check to see if we are connected to the internet or not and notify the DAVS client. |
davsEndpointHandler | REQUIRED, the endpoint handler which is used to generate the proper DAVS request URL. |
metricRecorder | OPTIONAL, metric recorder used for recording metrics. |
forcedUpdateInterval | OPTIONAL, sets the update interval for all artifact to a specific value. This is to be use only for testing! your devices will be throttled if used in production! |
- Returns
- NULLABLE, new DAVS Client
◆ deregisterArtifact()
void alexaClientSDK::acsdkAssets::davs::DavsClient::deregisterArtifact |
( |
const std::string & |
requestUUID | ) |
|
|
overridevirtual |
◆ downloadOnce()
◆ enableAutoUpdate()
void alexaClientSDK::acsdkAssets::davs::DavsClient::enableAutoUpdate |
( |
const std::string & |
requestUUID, |
|
|
bool |
enable |
|
) |
| |
|
overridevirtual |
Can set a downloadOnce artifact to auto update (like registerArtifact) or prevent an artifact from updating (like downloadOnce).
- Parameters
-
requestUUID | REQUIRED, uuid of the request to be deregistered. |
enable | weather to enable auto update or disable it (the difference between registerArtifact and downloadOnce). |
Implements alexaClientSDK::acsdkAssets::davsInterfaces::ArtifactHandlerInterface.
◆ getIdleState()
bool alexaClientSDK::acsdkAssets::davs::DavsClient::getIdleState |
( |
| ) |
const |
- Returns
- true if the device is idle
◆ onConnectionStatusChanged()
void alexaClientSDK::acsdkAssets::davs::DavsClient::onConnectionStatusChanged |
( |
bool |
connected | ) |
|
|
overridevirtual |
◆ registerArtifact()
◆ setIdleState()
void alexaClientSDK::acsdkAssets::davs::DavsClient::setIdleState |
( |
bool |
idleState | ) |
|
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/capabilities/DavsClient/acsdkDavsClient/include/acsdkDavsClient/DavsClient.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0