16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_AVSDIRECTIVE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_AVSDIRECTIVE_H_ 76 std::shared_ptr<avsCommon::avs::attachment::AttachmentManagerInterface> attachmentManager,
90 static std::unique_ptr<AVSDirective>
create(
92 std::shared_ptr<AVSMessageHeader> avsMessageHeader,
94 std::shared_ptr<avsCommon::avs::attachment::AttachmentManagerInterface> attachmentManager,
132 std::shared_ptr<AVSMessageHeader> avsMessageHeader,
134 std::shared_ptr<avsCommon::avs::attachment::AttachmentManagerInterface> attachmentManager,
141 std::shared_ptr<avsCommon::avs::attachment::AttachmentManagerInterface> m_attachmentManager;
157 return "ERROR_INVALID_JSON";
159 return "ERROR_MISSING_DIRECTIVE_KEY";
161 return "ERROR_MISSING_HEADER_KEY";
163 return "ERROR_MISSING_NAMESPACE_KEY";
165 return "ERROR_MISSING_NAME_KEY";
167 return "ERROR_MISSING_MESSAGE_ID_KEY";
169 return "ERROR_MISSING_PAYLOAD_KEY";
171 return "UNKNOWN_STATUS";
189 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_AVSDIRECTIVE_H_ std::string getAttachmentContextId() const
The parse was successful.
Definition: AVSMessage.h:35
The parse failed due to the namespace key being missing.
::std::string string
Definition: gtest-port.h:1097
The parse failed due to the message id key being missing.
static std::pair< std::unique_ptr< AVSDirective >, ParseStatus > create(const std::string &unparsedDirective, std::shared_ptr< avsCommon::avs::attachment::AttachmentManagerInterface > attachmentManager, const std::string &attachmentContextId)
std::string getUnparsedDirective() const
The parse failed due to the directive key being missing.
Definition: AVSDirective.h:34
Definition: Optional.h:32
std::unique_ptr< avsCommon::avs::attachment::AttachmentReader > getAttachmentReader(const std::string &contentId, utils::sds::ReaderPolicy readerPolicy) const
ParseStatus
Definition: AVSDirective.h:39
std::string avsDirectiveParseStatusToString(AVSDirective::ParseStatus status)
Definition: AVSDirective.h:152
std::ostream & operator<<(std::ostream &stream, AlexaResponseType responseType)
Definition: AlexaResponseType.h:93
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
ReaderPolicy
Specifies the policy to use for reading from the stream.
Definition: ReaderPolicy.h:25
The parse failed due to the header key being missing.
The parse failed due to invalid JSON formatting.
The parse failed due to the name key being missing.
The parse failed due to the message payload key being missing.