ZTPrefsRepository

class ZTPrefsRepository(storage: ZTPrefStorage)

ZTPrefsRepository

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Constructors

ZTPrefsRepository
Link copied to clipboard
fun ZTPrefsRepository(storage: ZTPrefStorage)

Types

Cached
Link copied to clipboard
class Cached
PreferencesKeys
Link copied to clipboard
class PreferencesKeys

Functions

clearUserData
Link copied to clipboard
fun clearUserData()
getAccessToken
Link copied to clipboard
fun getAccessToken(): String?
getAppUserId
Link copied to clipboard
fun getAppUserId(): String?
getDevicesSerialsMap
Link copied to clipboard
fun getDevicesSerialsMap(): Map<String, String>?
getLastActivityId
Link copied to clipboard
fun getLastActivityId(): String?
getLastActivityTime
Link copied to clipboard
fun getLastActivityTime(): Long?
getLastConnectedCode
Link copied to clipboard
fun getLastConnectedCode(): ZTCode?
getLastConnectedUuid
Link copied to clipboard
fun getLastConnectedUuid(): String?
getLastDeviceIdentifier
Link copied to clipboard
fun getLastDeviceIdentifier(): String?
getOrgCode
Link copied to clipboard
fun getOrgCode(): String?
hasUser
Link copied to clipboard
fun hasUser(): Boolean
setAccessToken
Link copied to clipboard
fun setAccessToken(token: String)
setAppUserId
Link copied to clipboard
fun setAppUserId(appUserId: String)
setHasUser
Link copied to clipboard
fun setHasUser(hasUser: Boolean)
setLastActivityId
Link copied to clipboard
fun setLastActivityId(activityId: String?)
setLastActivityTime
Link copied to clipboard
fun setLastActivityTime(time: Long?)
setLastConnectedDevice
Link copied to clipboard
fun setLastConnectedDevice(device: ZTDevice)
setOrgCode
Link copied to clipboard
fun setOrgCode(orgCode: String?)