16 #ifndef ALEXA_CLIENT_SDK_CERTIFIEDSENDER_INCLUDE_CERTIFIEDSENDER_MESSAGESTORAGEINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_CERTIFIEDSENDER_INCLUDE_CERTIFIEDSENDER_MESSAGESTORAGEINTERFACE_H_ 24 namespace certifiedSender {
89 virtual bool open() = 0;
94 virtual void close() = 0;
121 virtual bool load(std::queue<StoredMessage>* messageContainer) = 0;
129 virtual bool erase(
int messageId) = 0;
143 #endif // ALEXA_CLIENT_SDK_CERTIFIEDSENDER_INCLUDE_CERTIFIEDSENDER_MESSAGESTORAGEINTERFACE_H_
virtual bool load(std::queue< StoredMessage > *messageContainer)=0
int id
The unique id which the database associates with this message.
Definition: MessageStorageInterface.h:60
Definition: MessageStorageInterface.h:39
::std::string string
Definition: gtest-port.h:1097
std::string message
The message being stored.
Definition: MessageStorageInterface.h:62
virtual bool store(const std::string &message, int *id)=0
Definition: MessageStorageInterface.h:34
StoredMessage()
Definition: MessageStorageInterface.h:43
std::string uriPathExtension
The uri of the message.
Definition: MessageStorageInterface.h:64
virtual bool erase(int messageId)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual bool clearDatabase()=0
virtual ~MessageStorageInterface()=default
StoredMessage(int id, const std::string &message, const std::string &uriPathExtension="")
Definition: MessageStorageInterface.h:53
virtual bool createDatabase()=0