| 
    client-cpp
    0.7.0
    
   | 
 
#include <EndpointRegistrationManager.hpp>
 Inheritance diagram for kaa::EndpointRegistrationManager:
 Collaboration diagram for kaa::EndpointRegistrationManager:Public Member Functions | |
| EndpointRegistrationManager (IKaaClientStateStoragePtr status) | |
| virtual void | attachEndpoint (const std::string &endpointAccessToken, IAttachEndpointCallbackPtr listener=IAttachEndpointCallbackPtr()) | 
| 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()) | 
| 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()) | 
| 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()) | 
| Attaches the endpoint to a user entity. The user verification will be carried out by the specified verifier.  More... | |
| virtual bool | isAttachedToUser () | 
| Checks if the current endpoint is already attached to some user.  More... | |
| virtual void | setAttachStatusListener (IAttachStatusListenerPtr listener) | 
| Sets listener to notify of the current endpoint is attached/detached by another one.  More... | |
| virtual UserAttachRequestPtr | getUserAttachRequest () | 
| virtual std::unordered_map < std::int32_t, std::string >  | getEndpointsToAttach () | 
| virtual std::unordered_map < std::int32_t, std::string >  | getEndpointsToDetach () | 
| virtual void | onUserAttach (const UserAttachResponse &response) | 
| virtual void | onEndpointsAttach (const std::vector< EndpointAttachResponse > &endpoints) | 
| virtual void | onEndpointsDetach (const std::vector< EndpointDetachResponse > &endpoints) | 
| virtual void | onCurrentEndpointAttach (const UserAttachNotification &response) | 
| virtual void | onCurrentEndpointDetach (const UserDetachNotification &response) | 
| void | setTransport (UserTransport *transport) | 
  Public Member Functions inherited from kaa::IEndpointRegistrationManager | |
| virtual | ~IEndpointRegistrationManager () | 
  Public Member Functions inherited from kaa::IRegistrationProcessor | |
| virtual | ~IRegistrationProcessor () | 
Definition at line 41 of file EndpointRegistrationManager.hpp.
| kaa::EndpointRegistrationManager::EndpointRegistrationManager | ( | IKaaClientStateStoragePtr | status | ) | 
      
  | 
  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. | 
Implements kaa::IEndpointRegistrationManager.
      
  | 
  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. | 
Implements kaa::IEndpointRegistrationManager.
      
  | 
  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. | 
Implements kaa::IEndpointRegistrationManager.
      
  | 
  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. | 
Implements kaa::IEndpointRegistrationManager.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  inlinevirtual | 
Checks if the current endpoint is already attached to some user.
Implements kaa::IEndpointRegistrationManager.
Definition at line 62 of file EndpointRegistrationManager.hpp.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  virtual | 
Implements kaa::IRegistrationProcessor.
      
  | 
  inlinevirtual | 
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. | 
Implements kaa::IEndpointRegistrationManager.
Definition at line 64 of file EndpointRegistrationManager.hpp.
      
  | 
  inline | 
Definition at line 79 of file EndpointRegistrationManager.hpp.