bodo
05/11/2020, 11:31 AMclass HttpObjec(foo: Foo, date: Date) // date is the current date from the header of the response
interface HttpApi {
@GET(url)
fun doRequest(): HttpObject
}
I don´t want to add a Response object to every function in my interface like
interface HttpApi {
@GET(url)
fun doRequest(): Response<HttpObject>
}
Maybe there are solutions with writing custom adapter or converter, but i did not found a proper one 😞