KaaClientPropertiesState Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | KaaClientState |
| Declared in | KaaClientPropertiesState.h KaaClientPropertiesState.m |
Overview
Default implementation of KaaClientState protocol that uses file system to store Kaa client state.
– isConfigurationVersionUpdated
- (BOOL)isConfigurationVersionUpdatedReturn Value
YES - if configuration version was updated, NO - if it wasn’t.
Discussion
Declared In
KaaClientState.h
– setTopicListHash:
Holds hash calculated from list of available topics. See TopicListHashCalculator for more info.
- (void)setTopicListHash:(int32_t)topicListHashDiscussion
Holds hash calculated from list of available topics. See TopicListHashCalculator for more info.
Declared In
KaaClientState.h
– isRegistred
Defines whether server knows about current endpoint profile.
- (BOOL)isRegistredDiscussion
Defines whether server knows about current endpoint profile.
Declared In
KaaClientState.h
– setIsRegistred:
Defines whether server knows about current endpoint profile.
- (void)setIsRegistred:(BOOL)isRegistredDiscussion
Defines whether server knows about current endpoint profile.
Declared In
KaaClientState.h
– needProfileResync
Defines whether server need profile resync.
- (BOOL)needProfileResyncDiscussion
Defines whether server need profile resync.
Declared In
KaaClientState.h
– setNeedProfileResync:
Defines whether server need profile resync.
- (void)setNeedProfileResync:(BOOL)needProfileResyncDiscussion
Defines whether server need profile resync.
Declared In
KaaClientState.h
– persist
Persists current client state.
- (void)persistDiscussion
Persists current client state.
Declared In
KaaClientState.h
– refreshEndpointAccessToken
Generates and stores new endpoint access token.
- (NSString *)refreshEndpointAccessTokenReturn Value
New access token
Discussion
Generates and stores new endpoint access token.
Declared In
KaaClientState.h
– publicKeyAsBytes
Returns existing or generates new public key as bytes.
- (NSData *)publicKeyAsBytesDiscussion
Returns existing or generates new public key as bytes.
Declared In
KaaClientState.h
– publicKey
Returns existing or generates new public key.
- (SecKeyRef)publicKeyDiscussion
Returns existing or generates new public key.
Declared In
KaaClientState.h
– privateKey
Returns existing or generates new private key.
- (SecKeyRef)privateKeyDiscussion
Returns existing or generates new private key.
Declared In
KaaClientState.h
– endpointKeyHash
Unique endpoint identifier.
- (EndpointKeyHash *)endpointKeyHashDiscussion
Unique endpoint identifier.
Declared In
KaaClientState.h
– appStateSequenceNumber
Holds application state sequence number.
- (int32_t)appStateSequenceNumberDiscussion
Holds application state sequence number.
Declared In
KaaClientState.h
– profileHash
Holds endpoint profile hash.
- (EndpointObjectHash *)profileHashDiscussion
Holds endpoint profile hash.
Declared In
KaaClientState.h
– setAppStateSequenceNumber:
Holds application state sequence number.
- (void)setAppStateSequenceNumber:(int32_t)appStateSequenceNumberDiscussion
Holds application state sequence number.
Declared In
KaaClientState.h
– setProfileHash:
Holds endpoint profile hash.
- (void)setProfileHash:(EndpointObjectHash *)profileHashDiscussion
Holds endpoint profile hash.
Declared In
KaaClientState.h
– addTopic:
Adds topic with all its information.
- (void)addTopic:(Topic *)topicDiscussion
Adds topic with all its information.
Declared In
KaaClientState.h
– removeTopicId:
Remove topic with all its information by topic id.
- (void)removeTopicId:(int64_t)topicIdDiscussion
Remove topic with all its information by topic id.
Declared In
KaaClientState.h
– addSubscriptionForTopicWithId:
Add subscription for topic by ID.
- (void)addSubscriptionForTopicWithId:(int64_t)topicIdDiscussion
Add subscription for topic by ID.
Declared In
KaaClientState.h
– removeSubscriptionForTopicWithId:
Remove subscription for topic by ID.
- (void)removeSubscriptionForTopicWithId:(int64_t)topicIdDiscussion
Remove subscription for topic by ID.
Declared In
KaaClientState.h
– updateSubscriptionInfoForTopicId:sequence:
Used to update subscription info.
- (BOOL)updateSubscriptionInfoForTopicId:(int64_t)topicId sequence:(int32_t)sequenceNumberDiscussion
Used to update subscription info.
Declared In
KaaClientState.h
– getNotificationSubscriptions
Return dictionary with notification subscriptions information with Topic id as key and sequence number of TopicSubscriptionInfo as value.
- (NSDictionary *)getNotificationSubscriptionsReturn Value
Dictionary of <@(int64_t), @(int32_t)> as key-value.
Discussion
Return dictionary with notification subscriptions information with Topic id as key and sequence number of TopicSubscriptionInfo as value.
Declared In
KaaClientState.h
– getTopics
Topic
- (NSArray *)getTopicsReturn Value
Array of topics
See Also
Declared In
KaaClientState.h
– setAttachedEndpoints:
<EndpointAccessToken, EndpointKeyHash> as key-value.
- (void)setAttachedEndpoints:(NSMutableDictionary *)attachedEndpointsReturn Value
<EndpointAccessToken, EndpointKeyHash> as key-value.
Declared In
KaaClientState.h
– setEndpointAccessToken:
Holds current endpoint access token.
- (void)setEndpointAccessToken:(NSString *)endpointAccessTokenDiscussion
Holds current endpoint access token.
Declared In
KaaClientState.h
– endpointAccessToken
Holds current endpoint access token.
- (NSString *)endpointAccessTokenDiscussion
Holds current endpoint access token.
Declared In
KaaClientState.h
– getAndIncrementEventSequenceNumber
Next event sequence number that could be used by the system.
- (int32_t)getAndIncrementEventSequenceNumberReturn Value
Next event sequence number that could be used by the system.
Declared In
KaaClientState.h
– setEventSequenceNumber:
Holds current event sequence number.
- (void)setEventSequenceNumber:(int32_t)eventSequenceNumberDiscussion
Holds current event sequence number.
Declared In
KaaClientState.h
– isAttachedToUser
Defines whether endpoint is attached to its user.
- (BOOL)isAttachedToUserDiscussion
Defines whether endpoint is attached to its user.
Declared In
KaaClientState.h
– setIsAttachedToUser:
Defines whether endpoint is attached to its user.
- (void)setIsAttachedToUser:(BOOL)isAttachedToUserDiscussion
Defines whether endpoint is attached to its user.
Declared In
KaaClientState.h
– clean
Cleans up persisted client state.
- (void)cleanDiscussion
Cleans up persisted client state.
Declared In
KaaClientState.h