15 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_ENDPOINTS_ENDPOINTREGISTRATIONOBSERVERINTERFACE_H_ 16 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_ENDPOINTS_ENDPOINTREGISTRATIONOBSERVERINTERFACE_H_ 24 namespace sdkInterfaces {
89 PENDING_DEREGISTRATION
139 const std::vector<avs::CapabilityConfiguration>& capabilities) {
151 std::ostream& stream,
153 switch (registrationResult) {
155 stream <<
"SUCCEEDED";
158 stream <<
"CONFIGURATION_ERROR";
161 stream <<
"INTERNAL_ERROR";
164 stream <<
"PENDING_REGISTRATION";
167 stream <<
"PENDING_DEREGISTRATION";
170 stream <<
"PENDING_UPDATE";
173 stream <<
"ALREADY_REGISTERED";
190 std::ostream& stream,
192 switch (deregistrationResult) {
194 stream <<
"SUCCEEDED";
197 stream <<
"NOT_REGISTERED";
200 stream <<
"CONFIGURATION_ERROR";
203 stream <<
"INTERNAL_ERROR";
206 stream <<
"PENDING_REGISTRATION";
209 stream <<
"PENDING_DEREGISTRATION";
212 stream <<
"PENDING_UPDATE";
229 std::ostream& stream,
231 switch (updateResult) {
233 stream <<
"SUCCEEDED";
236 stream <<
"NOT_REGISTERED";
239 stream <<
"CONFIGURATION_ERROR";
242 stream <<
"INTERNAL_ERROR";
245 stream <<
"PENDING_REGISTRATION";
248 stream <<
"PENDING_DEREGISTRATION";
251 stream <<
"PENDING_UPDATE";
264 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_ENDPOINTS_ENDPOINTREGISTRATIONOBSERVERINTERFACE_H_ virtual ~EndpointRegistrationObserverInterface()=default
Update failed because the endpoint is being deregistered.
Definition: EndpointRegistrationObserverInterface.h:30
Update failed due to the endpoint not being registered yet.
Deregistration succeeded.
Update failed due to some configuration error.
std::ostream & operator<<(std::ostream &stream, const EndpointRegistrationObserverInterface::RegistrationResult ®istrationResult)
Definition: EndpointRegistrationObserverInterface.h:150
Deregistration failed because the endpoint is being deregistered.
Deregistration failed due to the endpoint not being registered yet.
Deregistration failed because the endpoint is being updated.
UpdateResult
Definition: EndpointRegistrationObserverInterface.h:55
RegistrationResult
Definition: EndpointRegistrationObserverInterface.h:35
Registration failed because the endpoint is being deregistered.
virtual void onEndpointUpdate(const EndpointIdentifier &endpointId, const avs::AVSDiscoveryEndpointAttributes &attributes, const UpdateResult result)=0
virtual void onEndpointRegistration(const EndpointIdentifier &endpointId, const avs::AVSDiscoveryEndpointAttributes &attributes, const RegistrationResult result)=0
virtual void onPendingEndpointRegistrationOrUpdate(const EndpointIdentifier &endpointId, const avs::AVSDiscoveryEndpointAttributes &attributes, const std::vector< avs::CapabilityConfiguration > &capabilities)
Definition: EndpointRegistrationObserverInterface.h:136
DeregistrationResult
Definition: EndpointRegistrationObserverInterface.h:75
Update failed due to internal error.
Registration failed due to internal error.
Definition: AVSDiscoveryEndpointAttributes.h:41
Update failed because the endpoint is being updated.
Registration failed because the endpoint is being updated.
Update failed because the endpoint is being registered.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Deregistration failed due to some configuration error.
Deregistration failed due to internal error.
Registration failed because the endpoint has already been registered.
Deregistration failed because the endpoint is being registered.
Registration failed due to some configuration error.
std::string EndpointIdentifier
Definition: EndpointIdentifier.h:38
Registration failed because the endpoint is being registered.
virtual void onEndpointDeregistration(const EndpointIdentifier &endpointId, const DeregistrationResult result)=0