AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AVSGatewayManagerStorage.h>
Public Member Functions | |
AVSGatewayManagerStorageInterface Functions | |
bool | init () override |
bool | loadState (GatewayVerifyState *state) override |
bool | saveState (const GatewayVerifyState &state) override |
void | clear () override |
Public Member Functions inherited from alexaClientSDK::avsGatewayManager::storage::AVSGatewayManagerStorageInterface | |
virtual | ~AVSGatewayManagerStorageInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< AVSGatewayManagerStorageInterface > | createAVSGatewayManagerStorageInterface (const std::shared_ptr< avsCommon::sdkInterfaces::storage::MiscStorageInterface > &miscStorage) |
static std::unique_ptr< AVSGatewayManagerStorage > | create (std::shared_ptr< avsCommon::sdkInterfaces::storage::MiscStorageInterface > miscStorage) |
Wrapper to the MiscStorageInterface used by the AVSGatewayManager
to store gateway verification state information.
|
overridevirtual |
Clears the stored data from the database.
Implements alexaClientSDK::avsGatewayManager::storage::AVSGatewayManagerStorageInterface.
|
static |
Creates an instance of the AVSGatewayManagerStorage
.
miscStorage | The underlying miscellaneous storage to store gateway verification data. |
AVSGatewayManagerStorage
.
|
static |
Creates an instance of @ AVSGatewayManagerStorageInterface.
miscStorage | The underlying miscellaneous storage to store gateway verification data. |
AVSGatewayManagerStorage
.
|
overridevirtual |
Initializes the underlying database.
Implements alexaClientSDK::avsGatewayManager::storage::AVSGatewayManagerStorageInterface.
|
overridevirtual |
Loads the GatewayVerifyState
from the database.
state | The pointer to the GatewayVerifyState that will populated. If the default state is passed and there is no data to be loaded, the state remains unchanged. |
Implements alexaClientSDK::avsGatewayManager::storage::AVSGatewayManagerStorageInterface.
|
overridevirtual |
Saves the given state to the database.
state | The GatewayVerifyState to be saved. |
Implements alexaClientSDK::avsGatewayManager::storage::AVSGatewayManagerStorageInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0