feat issues refs #7636
This commit is contained in:
parent
bac377d47f
commit
432a58f2e7
|
@ -5,7 +5,6 @@ import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.map
|
import androidx.lifecycle.map
|
||||||
import es.verdnatura.domain.SalixCallback
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.SilexCallback
|
|
||||||
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
|
||||||
|
@ -206,7 +205,7 @@ class PackagingViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun entry_addSalix(entry: EntrySalix) {
|
fun entry_addSalix(entry: EntrySalix) {
|
||||||
salix.add_entry(entry)
|
salix.add_entry(entry)
|
||||||
.enqueue(object :
|
.enqueue(object :
|
||||||
SilexCallback<EntrySalix>(context) {
|
SalixCallback<EntrySalix>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_entry.value = EntrySalix(
|
_entry.value = EntrySalix(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -323,7 +322,7 @@ class PackagingViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
fun notificationQueues(notification: String, workerfk: Int, bodyUrl: String) {
|
fun notificationQueues(notification: String, workerfk: Int, bodyUrl: String) {
|
||||||
salix.notificationQueues(notificationQueue(notification, workerfk, bodyUrl))
|
salix.notificationQueues(notificationQueue(notification, workerfk, bodyUrl))
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SalixCallback<Void>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_response.value = ResponseItemVO(
|
_response.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import es.verdnatura.domain.isoToString
|
||||||
class CollectionTicket(
|
class CollectionTicket(
|
||||||
var collectionFk: Int,
|
var collectionFk: Int,
|
||||||
var created: String? = null,
|
var created: String? = null,
|
||||||
var ticketTotalCount: Int = 0,
|
var ticketTotalCount: Int? = null,
|
||||||
var tickets: MutableList<Ticket> = mutableListOf(),
|
var tickets: MutableList<Ticket> = mutableListOf(),
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = "",
|
var errorMessage: String = "",
|
||||||
|
|
Loading…
Reference in New Issue