#include <EndpointRegistrationManager.hpp>
kaa::EndpointRegistrationManager::EndpointRegistrationManager |
( |
IKaaClientContext & |
context | ) |
|
Attaches the specified endpoint to the user to which the current endpoint is attached.
- Parameters
-
[in] | endpointAccessToken | The access token of the endpoint to be attached to the user. |
[in] | listener | The optional listener to notify of the result. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
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.
- Parameters
-
[in] | userExternalId | The external user ID. |
[in] | userAccessToken | The user access token. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
virtual void kaa::EndpointRegistrationManager::attachUser |
( |
const std::string & |
userExternalId, |
|
|
const std::string & |
userAccessToken, |
|
|
const std::string & |
userVerifierToken, |
|
|
IUserAttachCallbackPtr |
listener = IUserAttachCallbackPtr() |
|
) |
| |
|
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.
- Parameters
-
[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. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
Detaches the specified endpoint from the user to which the current endpoint is attached.
- Parameters
-
[in] | endpointKeyHash | The key hash of the endpoint to be detached from the user. |
[in] | listener | The optional listener to notify of the result. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
virtual std::unordered_map<std::int32_t, std::string> kaa::EndpointRegistrationManager::getEndpointsToAttach |
( |
| ) |
|
|
virtual |
virtual std::unordered_map<std::int32_t, std::string> kaa::EndpointRegistrationManager::getEndpointsToDetach |
( |
| ) |
|
|
virtual |
virtual bool kaa::EndpointRegistrationManager::isAttachedToUser |
( |
| ) |
|
|
inlinevirtual |
virtual void kaa::EndpointRegistrationManager::onCurrentEndpointAttach |
( |
const UserAttachNotification & |
response | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onCurrentEndpointDetach |
( |
const UserDetachNotification & |
response | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onEndpointsAttach |
( |
const std::vector< EndpointAttachResponse > & |
endpoints | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onEndpointsDetach |
( |
const std::vector< EndpointDetachResponse > & |
endpoints | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onUserAttach |
( |
const UserAttachResponse & |
response | ) |
|
|
virtual |
void kaa::EndpointRegistrationManager::setTransport |
( |
UserTransport * |
transport | ) |
|
|
inline |
The documentation for this class was generated from the following file: