I’m having an issue with Moshi (or Retrofit, not s...
# android
j
I’m having an issue with Moshi (or Retrofit, not sure). Since adding
implementation 'com.squareup.moshi:moshi-kotlin:1.5.0'
, the set hardcoded values in my data class that is the body of a call are no longer included. I imagine this is an issue with the adaptor (or the way I set it up), but I’m not sure what to do next. The code looks like this:
Copy code
interface IAuth {
    @POST("path/forquery")
    fun authorize(@Query("credentials") credentials: String, @Body body: AuthorizeRequestBody): Call<AuthorizeResponse>
}

data class AuthorizeRequestBody(val email_address: String, val state: String) {
    val language = "en"
    val platform = "android"
}