@Override public void attachUser( String userVerifierToken, String userExternalId, String userAccessToken, UserAttachCallback callback) { checkClientState(State.STARTED, "Kaa client isn't started"); endpointRegistrationManager.attachUser( userVerifierToken, userExternalId, userAccessToken, callback); }
@Override public void setDetachedListener(DetachEndpointFromUserCallback listener) { endpointRegistrationManager.setDetachedCallback(listener); }
@Override public void setAttachedListener(AttachEndpointToUserCallback listener) { endpointRegistrationManager.setAttachedCallback(listener); }
@Override public void detachEndpoint( EndpointKeyHash endpointKeyHash, OnDetachEndpointOperationCallback resultListener) { checkClientState(State.STARTED, "Kaa client isn't started"); endpointRegistrationManager.detachEndpoint(endpointKeyHash, resultListener); }
@Override public void attachEndpoint( EndpointAccessToken endpointAccessToken, OnAttachEndpointOperationCallback resultListener) { checkClientState(State.STARTED, "Kaa client isn't started"); endpointRegistrationManager.attachEndpoint(endpointAccessToken, resultListener); }
@Override public String refreshEndpointAccessToken() { return endpointRegistrationManager.refreshEndpointAccessToken(); }
@Override public void setEndpointAccessToken(String token) { endpointRegistrationManager.updateEndpointAccessToken(token); }