Version 23.2 Cambiado collection_assign a String.

This commit is contained in:
Sergio De la torre 2023-01-13 10:12:53 +01:00
parent d28ee67bc2
commit 88ecc0209e
4 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@ android {
applicationId "es.verdnatura"
minSdkVersion 24 //21
targetSdkVersion 30
versionCode 152
versionCode 153
//versionName = "9.8Beta" version 148
//versionName = "23.2Beta" 150
versionName = "23.2Beta"

View File

@ -178,7 +178,7 @@ interface VerdnaturaService {
@POST("almacennew/collection_assign")//NO SALIX
fun collection_assign(
):
Call<Any>
Call<String>
@POST("almacennew/operator_getItemPackingType")//NO SALIX
fun operator_getItemPackingType(

View File

@ -765,6 +765,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
override fun onSuccess(response: Response<Any>) {
super.onSuccess(response)
_responseIncQuantity.value =
ResponseItemVO(isError = false, response = response.message().toString())
}

View File

@ -78,7 +78,7 @@ class SacadorViewModel(val context: Context) : BaseViewModel(context) {
fun collection_assign() {
silex.collection_assign().enqueue(
object :
SilexCallback<Any>(context) {
SilexCallback<String>(context) {
override fun onError(t: Throwable) {
_response.value =
ResponseItemVO(
@ -90,7 +90,7 @@ class SacadorViewModel(val context: Context) : BaseViewModel(context) {
)
}
override fun onSuccess(response: Response<Any>) {
override fun onSuccess(response: Response<String>) {
if (response.body() != null) {
_response.value =
ResponseItemVO(isError = false, response = response.body()!!.toString())