vnwalletui / com.venuenext.vnwalletui.view.ui.virtualcurrencybalancetransfer / VirtualCurrencyTransferViewModel

VirtualCurrencyTransferViewModel

class VirtualCurrencyTransferViewModel : AndroidViewModel

Constructors

<init>

VirtualCurrencyTransferViewModel(application: Application)

Properties

cachedLoyaltyUser

var cachedLoyaltyUser: LoyaltyUser?

currencyName

val currencyName: String

Functions

fetchLoyaltyUser

fun fetchLoyaltyUser(): LoyaltyUser?

transferBalanceAsync

suspend fun transferBalanceAsync(context: Context, email: String, description: String, amountInCents: Double, success: () -> Unit, failure: (message: String) -> Unit): Unit?