|
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ACSDKASSETMANAGER_SRC_REQUESTERMETADATA_H_
17 #define ACSDKASSETMANAGER_SRC_REQUESTERMETADATA_H_
28 namespace acsdkAssets {
41 static std::unique_ptr<RequesterMetadata>
create(
42 std::shared_ptr<commonInterfaces::ArtifactRequest> request,
43 std::string resourceId =
"",
44 std::chrono::milliseconds lastUsed = std::chrono::milliseconds(0));
52 static std::unique_ptr<RequesterMetadata>
createFromFile(
const std::string& metadataFile);
60 bool saveToFile(
const std::string& metadataFile);
62 inline const std::shared_ptr<commonInterfaces::ArtifactRequest>&
getRequest() {
78 inline void setLastUsed(
const std::chrono::milliseconds value) {
82 inline void clear(
const std::string& metadataFile) {
84 alexaClientSDK::avsCommon::utils::filesystem::removeAll(metadataFile);
89 std::shared_ptr<commonInterfaces::ArtifactRequest> request,
90 std::string resourceId,
91 std::chrono::milliseconds lastUsed);
94 const std::shared_ptr<commonInterfaces::ArtifactRequest> m_request;
95 std::string m_resourceId;
96 std::chrono::milliseconds m_lastUsed;
103 #endif // ACSDKASSETMANAGER_SRC_REQUESTERMETADATA_H_
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0