feat issues refs #7636

This commit is contained in:
Sergio De la torre 2024-07-10 07:36:05 +02:00
parent bac377d47f
commit 432a58f2e7
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.map
import es.verdnatura.domain.SalixCallback
import es.verdnatura.domain.SilexCallback
import es.verdnatura.presentation.base.BaseViewModel
import es.verdnatura.presentation.base.getMessageFromAllResponse
import es.verdnatura.presentation.base.nameofFunction
@ -206,7 +205,7 @@ class PackagingViewModel(val context: Context) : BaseViewModel(context) {
fun entry_addSalix(entry: EntrySalix) {
salix.add_entry(entry)
.enqueue(object :
SilexCallback<EntrySalix>(context) {
SalixCallback<EntrySalix>(context) {
override fun onError(t: Throwable) {
_entry.value = EntrySalix(
isError = true,
@ -323,7 +322,7 @@ class PackagingViewModel(val context: Context) : BaseViewModel(context) {
fun notificationQueues(notification: String, workerfk: Int, bodyUrl: String) {
salix.notificationQueues(notificationQueue(notification, workerfk, bodyUrl))
.enqueue(object : SilexCallback<Void>(context) {
.enqueue(object : SalixCallback<Void>(context) {
override fun onError(t: Throwable) {
_response.value = ResponseItemVO(
isError = true,

View File

@ -11,7 +11,7 @@ import es.verdnatura.domain.isoToString
class CollectionTicket(
var collectionFk: Int,
var created: String? = null,
var ticketTotalCount: Int = 0,
var ticketTotalCount: Int? = null,
var tickets: MutableList<Ticket> = mutableListOf(),
var isError: Boolean = false,
var errorMessage: String = "",