AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acsdkAlerts::test::TestAlertObserver Class Reference
Inheritance diagram for alexaClientSDK::acsdkAlerts::test::TestAlertObserver:
Inheritance graph
Collaboration diagram for alexaClientSDK::acsdkAlerts::test::TestAlertObserver:
Collaboration graph

Public Member Functions

bool waitFor (AlertScheduler::State newState)
bool waitForPreviousState (AlertScheduler::State newState)
void onAlertStateChange (const AlertObserverInterface::AlertInfo &alertInfo)
- Public Member Functions inherited from alexaClientSDK::acsdkAlertsInterfaces::AlertObserverInterface
virtual ~AlertObserverInterface ()=default

Additional Inherited Members

- Public Types inherited from alexaClientSDK::acsdkAlertsInterfaces::AlertObserverInterface
enum  State {
  State::READY, State::STARTED, State::STOPPED, State::SNOOZED,
enum  Type { Type::ALARM, Type::TIMER, Type::REMINDER }
- Static Public Member Functions inherited from alexaClientSDK::acsdkAlertsInterfaces::AlertObserverInterface
template<class T >
static bool withinBounds (T value, T minVal, T maxVal)
static std::string stateToString (State state)
static std::string typeToString (Type type)
static std::string originalTimeToString (const OriginalTime &originalTime)
- Static Public Attributes inherited from alexaClientSDK::acsdkAlertsInterfaces::AlertObserverInterface
static const int ORIGINAL_TIME_FIELD_MIN = 0
 The minimum value for the field in OriginalTime. More...
static const int ORIGINAL_TIME_HOUR_MAX = 23
 The maximum value for the hour field in OriginalTime. More...
static const int ORIGINAL_TIME_MINUTE_MAX = 59
 The maximum value for the minute field in OriginalTime. More...
static const int ORIGINAL_TIME_SECOND_MAX = 59
 The maximum value for the second field in OriginalTime. More...
static const int ORIGINAL_TIME_MILLISECOND_MAX = 999
 The maximum value for the millisecond field in OriginalTime. More...

Member Function Documentation

◆ onAlertStateChange()

void alexaClientSDK::acsdkAlerts::test::TestAlertObserver::onAlertStateChange ( const AlertObserverInterface::AlertInfo alertInfo)

A callback function to notify an object that an alert has updated its state.

alertInfoThe information of the updated alert.

Implements alexaClientSDK::acsdkAlertsInterfaces::AlertObserverInterface.

◆ waitFor()

bool alexaClientSDK::acsdkAlerts::test::TestAlertObserver::waitFor ( AlertScheduler::State  newState)

◆ waitForPreviousState()

bool alexaClientSDK::acsdkAlerts::test::TestAlertObserver::waitForPreviousState ( AlertScheduler::State  newState)

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

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