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::test::MockResult Class Reference

Mock DirectiveHandlerResultInterface implementation. More...

Inheritance diagram for alexaClientSDK::avsCommon::test::MockResult:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::test::MockResult:
Collaboration graph
[legend]

Public Member Functions

void setCompleted () override
 
void setFailed (const std::string &description) override
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerResultInterface
virtual ~DirectiveHandlerResultInterface ()=default
 

Detailed Description

Mock DirectiveHandlerResultInterface implementation.

Member Function Documentation

◆ setCompleted()

void alexaClientSDK::avsCommon::test::MockResult::setCompleted ( )
overridevirtual

Indicate that the handling of the AVSDirective successfully ran to successful completion.

Note
Once this has been called, no other methods of this object should be called.

Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerResultInterface.

◆ setFailed()

void alexaClientSDK::avsCommon::test::MockResult::setFailed ( const std::string &  description)
overridevirtual

Indicate that handling an AVSDirective failed such that subsequent AVSDirectives with the same DialogRequestId should be cancelled.

Note
Once this has been called, no other methods of this object should be called.
Parameters
descriptionA description, suitable for logging, that indicates the nature of the failure.

Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerResultInterface.


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