refs #3520 feat:silex→salix
This commit is contained in:
parent
940db0ae30
commit
11ff4fddd7
|
@ -3,11 +3,9 @@ package es.verdnatura.presentation.view.feature.historicoshelving.fragment
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.map
|
|
||||||
import es.verdnatura.domain.SalixCallback
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.formatWithQuotes
|
import es.verdnatura.domain.formatWithQuotes
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
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.ItemShelvingLog
|
||||||
import es.verdnatura.presentation.view.feature.historicoshelving.model.ItemShelvingLogList
|
import es.verdnatura.presentation.view.feature.historicoshelving.model.ItemShelvingLogList
|
||||||
import retrofit2.Response
|
import retrofit2.Response
|
||||||
|
@ -18,12 +16,8 @@ class ItemShelvingLogViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
val itemShelvingLogList: LiveData<ItemShelvingLogList>
|
val itemShelvingLogList: LiveData<ItemShelvingLogList>
|
||||||
get() = _itemShelvingLogList
|
get() = _itemShelvingLogList
|
||||||
|
|
||||||
//val loadItemShelvingLogList = Transformations.map(_itemShelvingLogList) { Event(it) }
|
|
||||||
val loadItemShelvingLogList: LiveData<Event<ItemShelvingLogList>> = _itemShelvingLogList.map { Event(it) }
|
|
||||||
|
|
||||||
fun itemShelvingLogGet(vShelvingFK: String) {
|
fun itemShelvingLogGet(vShelvingFK: String) {
|
||||||
//salix falla fecha
|
|
||||||
//silex.itemShelvingLog_get(vShelvingFK)
|
|
||||||
salix.itemShelvingLogGet(params = listOf(vShelvingFK).formatWithQuotes())
|
salix.itemShelvingLogGet(params = listOf(vShelvingFK).formatWithQuotes())
|
||||||
.enqueue(object :
|
.enqueue(object :
|
||||||
SalixCallback<List<ItemShelvingLog>>(context) {
|
SalixCallback<List<ItemShelvingLog>>(context) {
|
||||||
|
|
Loading…
Reference in New Issue