![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AlertObserverInterface.h>
Classes | |
struct | AlertInfo |
struct | OriginalTime |
Public Member Functions | |
virtual | ~AlertObserverInterface ()=default |
virtual void | onAlertStateChange (const AlertInfo &alertInfo)=0 |
Static Public Member Functions | |
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 | |
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... | |
An interface for observing state changes on an Alert object.
An enum class to represent the states an alert can be in.
|
virtualdefault |
Destructor.
|
pure virtual |
A callback function to notify an object that an alert has updated its state.
alertInfo | The information of the updated alert. |
Implemented in alexaClientSDK::acsdkAlerts::test::TestAlertObserver, alexaClientSDK::acsdkAlerts::AlertsCapabilityAgent, alexaClientSDK::acsdkAlerts::test::MockAlertObserverInterface, and alexaClientSDK::acsdkAlerts::AlertScheduler.
|
inlinestatic |
Convert a OriginalTime
to a std::string
.
type | The OriginalTime to convert. |
OriginalTime
.
|
inlinestatic |
Convert a State
to a std::string
.
state | The State to convert. |
state
.
|
inlinestatic |
Convert a Type
to a std::string
.
type | The Type to convert. |
Type
.
|
inlinestatic |
Check whether a value is within the bounds.
value | The value to check. |
minVal | The minimum value. |
maxVal | The maximum value. |
true | if the value is within the bounds, false otherwise. |
|
static |
The minimum value for the field in OriginalTime
.
|
static |
The maximum value for the hour field in OriginalTime
.
|
static |
The maximum value for the millisecond field in OriginalTime
.
|
static |
The maximum value for the minute field in OriginalTime
.
|
static |
The maximum value for the second field in OriginalTime
.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0