AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MimeUtils.h>
Public Member Functions | |
TestMimeJsonPart (const std::string &boundaryString, int dataSize, std::shared_ptr< TestableMessageObserver > messageObserver) | |
TestMimeJsonPart (const std::string &mimeString, const std::string &message, std::shared_ptr< TestableMessageObserver > messageObserver) | |
std::string | getMimeString () const override |
virtual bool | validateMimeParsing () override |
A utility class to test a JSON MIME part, which our SDK interprets as Directives.
alexaClientSDK::avsCommon::utils::TestMimeJsonPart::TestMimeJsonPart | ( | const std::string & | boundaryString, |
int | dataSize, | ||
std::shared_ptr< TestableMessageObserver > | messageObserver | ||
) |
Constructor.
boundaryString | The boundary string for the MIME text. |
dataSize | The size of the directive string to be generated and tested. |
messageObserver | The object which will expect to receive the directive string once parsed elsewhere. |
alexaClientSDK::avsCommon::utils::TestMimeJsonPart::TestMimeJsonPart | ( | const std::string & | mimeString, |
const std::string & | message, | ||
std::shared_ptr< TestableMessageObserver > | messageObserver | ||
) |
Constructor.
mimeString | The mime string for this part, including a leading boundary |
message | The size of the directive string to be generated and tested. |
messageObserver | The object which will expect to receive the directive string once parsed elsewhere. |
|
overridevirtual |
Convert the data of this logical MIME part to an actual string which may be used to feed a real MIME parser.
boundaryString | The boundary string for the MIME text. |
Implements alexaClientSDK::avsCommon::utils::TestMimePart.
|
overridevirtual |
Function to validate the MIME part was parsed elsewhere and received correctly. Subclass specializations will expect to handle this in different ways, using different internal objects.
Implements alexaClientSDK::avsCommon::utils::TestMimePart.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0