refs #6411 feat:update libraries
This commit is contained in:
parent
e85939e211
commit
e85061f348
|
@ -3,6 +3,7 @@ package es.verdnatura.presentation.view.feature.presacador.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.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.domain.SalixCallback
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.SilexCallback
|
import es.verdnatura.domain.SilexCallback
|
||||||
|
@ -10,6 +11,7 @@ import es.verdnatura.domain.formatWithQuotes
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
import es.verdnatura.presentation.base.BaseViewModel
|
||||||
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
||||||
import es.verdnatura.presentation.base.nameofFunction
|
import es.verdnatura.presentation.base.nameofFunction
|
||||||
|
import es.verdnatura.presentation.common.Event
|
||||||
import es.verdnatura.presentation.common.ResponseItemVO
|
import es.verdnatura.presentation.common.ResponseItemVO
|
||||||
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
||||||
import es.verdnatura.presentation.view.feature.presacador.model.PreSacadorItemVO
|
import es.verdnatura.presentation.view.feature.presacador.model.PreSacadorItemVO
|
||||||
|
@ -23,13 +25,6 @@ import retrofit2.Response
|
||||||
|
|
||||||
class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
|
class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
/*private val contextApp=context
|
|
||||||
private val getPreSacadorUseCase: GetPreSacadorUseCase = GetPreSacadorUseCase(context)
|
|
||||||
private val getSacadorControladorUserCase: GetSacadorControladorUserCase =
|
|
||||||
GetSacadorControladorUserCase(context)
|
|
||||||
private val getUbicadorUserCase: GetUbicadorUserCase = GetUbicadorUserCase(context)
|
|
||||||
private val getLoginUserCase: GetLoginUserCase = GetLoginUserCase(context)*/
|
|
||||||
|
|
||||||
private val _salesList by lazy { MutableLiveData<List<PreSacadorItemVO>>() }
|
private val _salesList by lazy { MutableLiveData<List<PreSacadorItemVO>>() }
|
||||||
val salesList: LiveData<List<PreSacadorItemVO>>
|
val salesList: LiveData<List<PreSacadorItemVO>>
|
||||||
get() = _salesList
|
get() = _salesList
|
||||||
|
@ -82,6 +77,7 @@ class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
private val _responseSaleGroupAdd by lazy { MutableLiveData<ResponseItemVO>() }
|
private val _responseSaleGroupAdd by lazy { MutableLiveData<ResponseItemVO>() }
|
||||||
val responseSaleGroupAdd: LiveData<ResponseItemVO>
|
val responseSaleGroupAdd: LiveData<ResponseItemVO>
|
||||||
get() = _responseSaleGroupAdd
|
get() = _responseSaleGroupAdd
|
||||||
|
val loadResponseSaleGropAdd: LiveData<Event<ResponseItemVO>> = _responseSaleGroupAdd.map { Event(it) }
|
||||||
|
|
||||||
private val _responseSaleAddPrevOK by lazy { MutableLiveData<ResponseItemVO>() }
|
private val _responseSaleAddPrevOK by lazy { MutableLiveData<ResponseItemVO>() }
|
||||||
val responseSaleAddPrevOK: LiveData<ResponseItemVO>
|
val responseSaleAddPrevOK: LiveData<ResponseItemVO>
|
||||||
|
|
Loading…
Reference in New Issue