class WalletViewModel : AndroidViewModel, LoginResultListener
ViewState |
sealed class ViewState |
<init> |
WalletViewModel(application: Application) |
actionBarTitle |
val actionBarTitle: String? |
ticketingInterface |
var ticketingInterface: TicketingInterface? |
viewStateLiveData |
val viewStateLiveData: LiveData<ViewState!> |
virtualCurrencyName |
val virtualCurrencyName: String? |
clearState |
fun clearState(): Unit |
loadData |
Attempts to pull the loyalty user, doing a network call if necessary. fun loadData(): Job |
onCleared |
fun onCleared(): Unit |
onLoginFailure |
fun onLoginFailure(): Unit |
onLoginSuccess |
fun onLoginSuccess(ticketingLoginData: TicketingLoginData): Unit |
requestLoyaltyUser |
Requests the loyalty user - if there is none, then this will launch the ticketing flow suspend fun requestLoyaltyUser(): LoyaltyUser? |