AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::acl::PingHandler Class Reference

#include <PingHandler.h>

Inheritance diagram for alexaClientSDK::acl::PingHandler:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acl::PingHandler:
Collaboration graph
[legend]

Public Member Functions

 ~PingHandler ()
 
- Public Member Functions inherited from alexaClientSDK::acl::ExchangeHandler
 ExchangeHandler (std::shared_ptr< ExchangeHandlerContextInterface > context, const std::string &authToken)
 
virtual ~ExchangeHandler ()=default
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::http2::HTTP2RequestSourceInterface
virtual ~HTTP2RequestSourceInterface ()=default
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::http2::HTTP2ResponseSinkInterface
virtual ~HTTP2ResponseSinkInterface ()=default
 

Static Public Member Functions

static std::shared_ptr< PingHandlercreate (std::shared_ptr< ExchangeHandlerContextInterface > context, const std::string &authToken, const std::shared_ptr< avsCommon::utils::power::PowerResource > &powerResource=nullptr)
 

Additional Inherited Members

- Protected Attributes inherited from alexaClientSDK::acl::ExchangeHandler
std::shared_ptr< ExchangeHandlerContextInterfacem_context
 The HTTP2Transport instance for which this exchange is to be performed. More...
 
const std::string m_authToken
 The auth token used to make the request. More...
 
const std::string m_authHeader
 The AVS authorization header to send in the request. More...
 

Constructor & Destructor Documentation

◆ ~PingHandler()

alexaClientSDK::acl::PingHandler::~PingHandler ( )

Destructor.

Member Function Documentation

◆ create()

static std::shared_ptr<PingHandler> alexaClientSDK::acl::PingHandler::create ( std::shared_ptr< ExchangeHandlerContextInterface context,
const std::string &  authToken,
const std::shared_ptr< avsCommon::utils::power::PowerResource > &  powerResource = nullptr 
)
static

Create a PingHandler and send the ping request.

Parameters
contextThe ExchangeContext in which this ping handler will operate.
authTokenThe token to use to authorize the request.
powerResourceThe optional powerResource object to prevent the device from going into LPM.
Returns
A new PingHandler or nullptr if the operation fails.

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