12345678910111213141516171819202122232425262728 |
- package com.hongyegroup.auth.mvvm
- import com.guadou.lib_baselib.base.vm.BaseViewModel
- import com.guadou.lib_baselib.ext.toast
- class AuthViewModel constructor() : BaseViewModel() {
- private val mAuthRepository: AuthRepository by lazy { AuthRepository() }
- fun getServiceTime() {
- launchOnUI {
- loadStartProgress()
- val serverTime = mAuthRepository.getServerTime()
- serverTime.checkSuccess {
- toast(it.timestamps.toString())
- }
- loadSuccess()
- }
- }
- }
|