16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CAPABILITIESDELEGATEOBSERVERINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CAPABILITIESDELEGATEOBSERVERINTERFACE_H_ 24 namespace sdkInterfaces {
80 const std::vector<std::string>& addedOrUpdatedEndpointIds,
81 const std::vector<std::string>& deletedEndpointIds) = 0;
94 return stream <<
"UNINITIALIZED";
96 return stream <<
"SUCCESS";
98 return stream <<
"FATAL_ERROR";
100 return stream <<
"RETRIABLE_ERROR";
102 return stream <<
"Unknown CapabilitiesDelegateObserverInterface::State!: " << state;
115 return stream <<
"UNINITIALIZED";
117 return stream <<
"SUCCESS";
119 return stream <<
"UNKNOWN_ERROR";
121 return stream <<
"FORBIDDEN";
123 return stream <<
"SERVER_INTERNAL_ERROR";
125 return stream <<
"CLIENT_ERROR_BAD_REQUEST";
127 return stream <<
"CANCELED";
129 return stream <<
"Unknown CapabilitiesDelegateObserverInterface::Error!: " << error;
136 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CAPABILITIESDELEGATEOBSERVERINTERFACE_H_ The state (and hence the error) has not been initialized.
std::ostream & operator<<(std::ostream &stream, const AudioInputProcessorObserverInterface::State &state)
Definition: AudioInputProcessorObserverInterface.h:94
CapabilitiesDelegate is uninitialized.
The server encountered a runtime error.
The Capabilities API message went through without issues.
HTTP code for invalid request by user.
Definition: HttpResponseCodes.h:41
Error
The enum Error encodes possible errors which may occur when changing state.
Definition: CapabilitiesDelegateObserverInterface.h:44
The request is missing a required parameter, has an invalid value, or is otherwise improperly formed...
Definition: CapabilitiesDelegateObserverInterface.h:29
HTTP code for forbidden request by user.
Definition: HttpResponseCodes.h:43
HTTP code for internal error by server which didn't fulfill the request.
Definition: HttpResponseCodes.h:45
The message did not go through, but you can retry to see if you succeed.
The request was canceled.
virtual ~CapabilitiesDelegateObserverInterface()=default
State
The enum State describes the state of the CapabilitiesDelegate.
Definition: CapabilitiesDelegateObserverInterface.h:32
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
The message did not go through because of issues that need fixing.
The authorization failed.
virtual void onCapabilitiesStateChange(State newState, Error newError, const std::vector< std::string > &addedOrUpdatedEndpointIds, const std::vector< std::string > &deletedEndpointIds)=0
An unknown error occurred.