diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogViewModel.kt index 39332124..860f37b4 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogViewModel.kt @@ -3,11 +3,9 @@ package es.verdnatura.presentation.view.feature.historicoshelving.fragment import android.content.Context import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData -import androidx.lifecycle.map import es.verdnatura.domain.SalixCallback import es.verdnatura.domain.formatWithQuotes import es.verdnatura.presentation.base.BaseViewModel -import es.verdnatura.presentation.common.Event import es.verdnatura.presentation.view.feature.historicoshelving.model.ItemShelvingLog import es.verdnatura.presentation.view.feature.historicoshelving.model.ItemShelvingLogList import retrofit2.Response @@ -18,12 +16,8 @@ class ItemShelvingLogViewModel(val context: Context) : BaseViewModel(context) { val itemShelvingLogList: LiveData get() = _itemShelvingLogList - //val loadItemShelvingLogList = Transformations.map(_itemShelvingLogList) { Event(it) } - val loadItemShelvingLogList: LiveData> = _itemShelvingLogList.map { Event(it) } - fun itemShelvingLogGet(vShelvingFK: String) { - //salix falla fecha - //silex.itemShelvingLog_get(vShelvingFK) + salix.itemShelvingLogGet(params = listOf(vShelvingFK).formatWithQuotes()) .enqueue(object : SalixCallback>(context) {