AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MimeUtils.h>
Public Member Functions | |
TestMimeAttachmentPart (const std::string &boundaryString, const std::string &contextId, const std::string contentId, int dataSize, std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > attachmentManager) | |
std::string | getMimeString () const override |
virtual bool | validateMimeParsing () override |
A utility class to test a binary MIME part, which our SDK interprets as Attachments.
alexaClientSDK::avsCommon::utils::TestMimeAttachmentPart::TestMimeAttachmentPart | ( | const std::string & | boundaryString, |
const std::string & | contextId, | ||
const std::string | contentId, | ||
int | dataSize, | ||
std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > | attachmentManager | ||
) |
Constructor.
boundaryString | The boundary string for the MIME text. |
contextId | The context id of the simulated Attachment. |
contentId | The content id of the simulated Attachment. |
dataSize | The size of the attachment data to be generated and tested. |
attachmentManager | An attachment manager with which this class should interact. |
|
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