refs #3520 feat:silex→salix

This commit is contained in:
Sergio De la torre 2024-04-19 09:52:07 +02:00
parent 940db0ae30
commit 11ff4fddd7
1 changed files with 1 additions and 7 deletions

View File

@ -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<ItemShelvingLogList>
get() = _itemShelvingLogList
//val loadItemShelvingLogList = Transformations.map(_itemShelvingLogList) { Event(it) }
val loadItemShelvingLogList: LiveData<Event<ItemShelvingLogList>> = _itemShelvingLogList.map { Event(it) }
fun itemShelvingLogGet(vShelvingFK: String) {
//salix falla fecha
//silex.itemShelvingLog_get(vShelvingFK)
salix.itemShelvingLogGet(params = listOf(vShelvingFK).formatWithQuotes())
.enqueue(object :
SalixCallback<List<ItemShelvingLog>>(context) {