AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::TestMimePart Class Referenceabstract

#include <MimeUtils.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::TestMimePart:
Inheritance graph
[legend]

Public Member Functions

virtual std::string getMimeString () const =0
 
virtual bool validateMimeParsing ()=0
 

Detailed Description

Utility class to abstract the notion of testing a MIME part.

Member Function Documentation

◆ getMimeString()

virtual std::string alexaClientSDK::avsCommon::utils::TestMimePart::getMimeString ( ) const
pure virtual

Convert the data of this logical MIME part to an actual string which may be used to feed a real MIME parser.

Parameters
boundaryStringThe boundary string for the MIME text.
Returns
The generated MIME string.

Implemented in alexaClientSDK::avsCommon::utils::TestMimeAttachmentPart, and alexaClientSDK::avsCommon::utils::TestMimeJsonPart.

◆ validateMimeParsing()

virtual bool alexaClientSDK::avsCommon::utils::TestMimePart::validateMimeParsing ( )
pure virtual

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.

Returns
Whether the MIME part was parsed and received correctly.

Implemented in alexaClientSDK::avsCommon::utils::TestMimeAttachmentPart, and alexaClientSDK::avsCommon::utils::TestMimeJsonPart.


The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0