vnticket / com.venuenext.vnticket.data / TicketingAccountRepository

TicketingAccountRepository

class TicketingAccountRepository : BaseCoroutineScope

Properties

context

val context: Context

Functions

deleteAllTicketingAccounts

suspend fun deleteAllTicketingAccounts(): Any

getTicketingAccount

suspend fun getTicketingAccount(): TicketingAccount?
suspend fun getTicketingAccount(loginData: TicketingLoginData, loginFlow: String = "sdk"): TicketingAccount?

getTicketingAccountAndRefreshIfCurrentDisplayIdIsMissing

suspend fun getTicketingAccountAndRefreshIfCurrentDisplayIdIsMissing(): TicketingAccount?

getTicketingAccountLiveData

fun getTicketingAccountLiveData(): LiveData<TicketingAccount?>

storeTicketingAccount

fun storeTicketingAccount(stubAccount: TicketingAccount, fullname: String?): TicketingAccount

Companion Object Functions

getInstance

fun getInstance(context: Context): TicketingAccountRepository