From 11ff4fddd7dfbcb153abcffd25173cf0ee102582 Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Fri, 19 Apr 2024 09:52:07 +0200 Subject: [PATCH] =?UTF-8?q?refs=20#3520=20feat:silex=E2=86=92salix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fragment/ItemShelvingLogViewModel.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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) {