package com.example.smart119.viewModel

import android.security.identity.ResultData
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch

class TransferViewModel: ViewModel() {
    private val _someLiveData = MutableLiveData<ResultData>()
    val someLiveData:LiveData<ResultData> = _someLiveData

    fun requestData() {
        viewModelScope.launch {
//            try {
//                val result = TransferRepository.getData()
//                _someLiveData.value = result
//            } catch (e: Exception) {
//                // 에러 처리
//            }
        }
    }
}