Mobile API Reference  MicroStrategy 2019
SessionStateWrapper Class Reference

#import <MSISessionConnectionManager.h>

Inheritance diagram for SessionStateWrapper:

Instance Methods

(id) - initWithSessionState:
 
(BOOL- isDummyWrapper
 

Properties

NSString * sessionState
 
NSDate * timeStamp
 
BOOL hasMobileRWPrivilege
 
NSString * username
 

Detailed Description

SessionStateWrapper wraps the session state, the timestamp when the session state is accessed last time and whether the session state has mobile Read Write privilege.

Method Documentation

◆ initWithSessionState:()

- (id) initWithSessionState: (NSString *)  sessionState

Initialize with the session state and set the timestamp as the current time

Parameters
sessionStatesession state
Returns
self

◆ isDummyWrapper()

- (BOOL) isDummyWrapper

return YES if sessionState.length == 0; only used as placeholder in this case

Property Documentation

◆ hasMobileRWPrivilege

- (BOOL) hasMobileRWPrivilege
readwriteatomic

whether the session state has mobile Read Write privilege Default is NO.

◆ sessionState

- (NSString*) sessionState
readatomiccopy

session state

◆ timeStamp

- (NSDate*) timeStamp
readwriteatomiccopy

timestamp when the session state is last accessed Default is current time.

◆ username

- (NSString*) username
readwriteatomiccopy

username