AccountRepository

class AccountRepository

Account model on current device. Device Id is scoped to publishable Key, so it can't exist outside of login, so these two identifiers should be kept together to prevent oddities of using wrong Id in case of multiple accounts on one device.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun createAccount(newKey: String): AccountRepository

Creator of account. Removes existing account

Link copied to clipboard
fun updatePushToken(result: PushTokenResult)

Properties

Link copied to clipboard
var deviceDataVersion: Int
Link copied to clipboard
val deviceId: String?
Link copied to clipboard
var deviceMetaData: String?
Link copied to clipboard
var deviceName: String?
Link copied to clipboard
var isAccountValid: Boolean
Link copied to clipboard
var latestAuthToken: String?
Link copied to clipboard
val publishableKey: String?
Link copied to clipboard
val pushToken: String?
Link copied to clipboard
val pushTokenError: String?