![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
bool | createDatabase () override |
bool | open () override |
void | close () override |
bool | store (const std::string &message, int *id) override |
bool | store (const std::string &message, const std::string &uriPathExtension, int *id) override |
bool | load (std::queue< StoredMessage > *messageContainer) override |
bool | erase (int messageId) override |
bool | clearDatabase () override |
Test MessageStorageInterface
implementation to provide a valid instance for the initialization of other components.
|
inlineoverridevirtual |
A utility function to clear the database of all records. Note that the database will still exist, as will the tables. Only the rows will be erased.
Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Close the currently open database, if one is open.
Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Creates a new database with the given filePath. If a database is already being handled by this object, or there is are other errors creating the database, this function returns false.
true
If the database is created ok, or false
if a database is already being handled by this object or there is an internal error creating the database. Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Erases a single message from the database.
messageId | The id of the message to be erased. |
Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Loads all messages in the database.
[out] | messageContainer | The container where messages should be stored. |
StoredMessages
were successfully loaded. Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Open an existing database. If this object is already managing an open database, or there is a problem opening the database, this function returns false.
true
If the database is opened ok, false
if this object is already managing an open database, or if there is another internal reason the database could not be opened. Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Stores a single message in the database.
The | message to store. | |
[out] | id | The id associated with the stored messsage, if successfully stored. |
Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
|
inlineoverridevirtual |
Stores a single message and its uri in the database.
The | message to store. | |
uriPathExtension | path extension which will be appended to the base url of the AVS when sending the event. | |
[out] | id | The id associated with the stored messsage, if successfully stored. |
Implements alexaClientSDK::certifiedSender::MessageStorageInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0