public class KaaClientPropertiesState extends Object implements KaaClientState
Constructor and Description |
---|
KaaClientPropertiesState(PersistentStorage storage,
Base64 base64,
KaaClientProperties properties) |
public KaaClientPropertiesState(PersistentStorage storage, Base64 base64, KaaClientProperties properties)
public boolean isConfigurationVersionUpdated()
isConfigurationVersionUpdated
in interface KaaClientState
public boolean isRegistered()
isRegistered
in interface KaaClientState
public void setRegistered(boolean registered)
setRegistered
in interface KaaClientState
public void persist()
persist
in interface KaaClientState
public String refreshEndpointAccessToken()
refreshEndpointAccessToken
in interface KaaClientState
public PublicKey getPublicKey()
getPublicKey
in interface KaaClientState
public PrivateKey getPrivateKey()
getPrivateKey
in interface KaaClientState
public EndpointKeyHash getEndpointKeyHash()
getEndpointKeyHash
in interface KaaClientState
public int getAppStateSeqNumber()
getAppStateSeqNumber
in interface KaaClientState
public EndpointObjectHash getProfileHash()
getProfileHash
in interface KaaClientState
public void setAppStateSeqNumber(int appStateSeqNumber)
setAppStateSeqNumber
in interface KaaClientState
public void setProfileHash(EndpointObjectHash hash)
setProfileHash
in interface KaaClientState
public void addTopic(org.kaaproject.kaa.common.endpoint.gen.Topic topic)
addTopic
in interface KaaClientState
public void removeTopic(Long topicId)
removeTopic
in interface KaaClientState
public void addTopicSubscription(Long topicId)
addTopicSubscription
in interface KaaClientState
public void removeTopicSubscription(Long topicId)
removeTopicSubscription
in interface KaaClientState
public boolean updateTopicSubscriptionInfo(Long topicId, Integer sequenceNumber)
updateTopicSubscriptionInfo
in interface KaaClientState
public Map<Long,Integer> getNfSubscriptions()
getNfSubscriptions
in interface KaaClientState
public Collection<org.kaaproject.kaa.common.endpoint.gen.Topic> getTopics()
getTopics
in interface KaaClientState
public void setTopicListHash(Integer topicListHash)
setTopicListHash
in interface KaaClientState
public Integer getTopicListHash()
getTopicListHash
in interface KaaClientState
public void setAttachedEndpointsList(Map<EndpointAccessToken,EndpointKeyHash> attachedEndpoints)
setAttachedEndpointsList
in interface KaaClientState
public Map<EndpointAccessToken,EndpointKeyHash> getAttachedEndpointsList()
getAttachedEndpointsList
in interface KaaClientState
public void setEndpointAccessToken(String token)
setEndpointAccessToken
in interface KaaClientState
public String getEndpointAccessToken()
getEndpointAccessToken
in interface KaaClientState
public int getAndIncrementEventSeqNum()
getAndIncrementEventSeqNum
in interface KaaClientState
public int getEventSeqNum()
getEventSeqNum
in interface KaaClientState
public void setEventSeqNum(int newSeqNum)
setEventSeqNum
in interface KaaClientState
public boolean isAttachedToUser()
isAttachedToUser
in interface KaaClientState
public void setAttachedToUser(boolean isAttached)
setAttachedToUser
in interface KaaClientState
public void clean()
clean
in interface KaaClientState
Copyright © 2016. All rights reserved.