https://kotlinlang.org logo
#android
Title
# android
s

smilecs

11/15/2017, 1:47 PM
all right problem solved forgot i was using this before we changed the response pattern from the api…
Copy code
private fun providesGson(): Gson {
        val gsonBuilder = GsonBuilder()
        gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)
        return gsonBuilder.create()
    }
y

yperess

11/15/2017, 4:34 PM
I suggest you make use of @SerializedName("status") etc to avoid these kinds of ambiguities.
s

smilecs

11/15/2017, 4:34 PM
yea..thanks