client-cpp
0.10.0
|
The interface to a module which associates endpoints with users. More...
#include <IEndpointRegistrationManager.hpp>
Public Member Functions | |
virtual void | attachEndpoint (const std::string &endpointAccessToken, IAttachEndpointCallbackPtr listener=IAttachEndpointCallbackPtr())=0 |
Attaches the specified endpoint to the user to which the current endpoint is attached. More... | |
virtual void | detachEndpoint (const std::string &endpointKeyHash, IDetachEndpointCallbackPtr listener=IDetachEndpointCallbackPtr())=0 |
Detaches the specified endpoint from the user to which the current endpoint is attached. More... | |
virtual void | attachUser (const std::string &userExternalId, const std::string &userAccessToken, IUserAttachCallbackPtr listener=IUserAttachCallbackPtr())=0 |
Attaches the current endpoint to the specifier user. The user verification is carried out by the default verifier. More... | |
virtual void | attachUser (const std::string &userExternalId, const std::string &userAccessToken, const std::string &userVerifierToken, IUserAttachCallbackPtr listener=IUserAttachCallbackPtr())=0 |
Attaches the endpoint to a user entity. The user verification will be carried out by the specified verifier. More... | |
virtual void | setAttachStatusListener (IAttachStatusListenerPtr listener)=0 |
Sets listener to notify of the current endpoint is attached/detached by another one. More... | |
virtual bool | isAttachedToUser ()=0 |
Checks if the current endpoint is already attached to some user. More... | |
virtual | ~IEndpointRegistrationManager () |
The interface to a module which associates endpoints with users.
NOTE: According to the Kaa architecture, endpoints must be associated with the same user in order to be able to communicate with each other.
Definition at line 37 of file IEndpointRegistrationManager.hpp.
|
inlinevirtual |
Definition at line 119 of file IEndpointRegistrationManager.hpp.
|
pure virtual |
Attaches the specified endpoint to the user to which the current endpoint is attached.
[in] | endpointAccessToken | The access token of the endpoint to be attached to the user. |
[in] | listener | The optional listener to notify of the result. |
BadCredentials | The endpoint access token is empty. |
TransportNotFoundException | The Kaa SDK isn't fully initialized. |
KaaException | Some other failure has happened. |
Implemented in kaa::EndpointRegistrationManager.
|
pure virtual |
Attaches the current endpoint to the specifier user. The user verification is carried out by the default verifier.
NOTE: If the default user verifier (DEFAULT_USER_VERIFIER_TOKEN) is not specified, the attach attempt fails with the KaaException
exception.
Only endpoints associated with the same user can exchange events.
[in] | userExternalId | The external user ID. |
[in] | userAccessToken | The user access token. |
BadCredentials | The endpoint access token is empty. |
TransportNotFoundException | The Kaa SDK isn't fully initialized. |
KaaException | Some other failure has happened. |
Implemented in kaa::EndpointRegistrationManager.
|
pure virtual |
Attaches the endpoint to a user entity. The user verification will be carried out by the specified verifier.
Only endpoints associated with the same user can exchange events.
[in] | userExternalId | The external user ID. |
[in] | userAccessToken | The user access token. |
[in] | userVerifierToken | The user verifier token. |
[in] | listener | The optional listener to notify of the result. |
BadCredentials | The endpoint access token is empty. |
TransportNotFoundException | The Kaa SDK isn't fully initialized. |
KaaException | Some other failure has happened. |
Implemented in kaa::EndpointRegistrationManager.
|
pure virtual |
Detaches the specified endpoint from the user to which the current endpoint is attached.
[in] | endpointKeyHash | The key hash of the endpoint to be detached from the user. |
[in] | listener | The optional listener to notify of the result. |
BadCredentials | The endpoint access token is empty. |
TransportNotFoundException | The Kaa SDK isn't fully initialized. |
KaaException | Some other failure has happened. |
Implemented in kaa::EndpointRegistrationManager.
|
pure virtual |
Checks if the current endpoint is already attached to some user.
Implemented in kaa::EndpointRegistrationManager.
|
pure virtual |
Sets listener to notify of the current endpoint is attached/detached by another one.
[in] | listener | Listener to notify of the attach status is changed. |
Implemented in kaa::EndpointRegistrationManager.