All Questions
4
questions
0
votes
0
answers
297
views
Complex JSON with generics using Retrofit2
In my application, most of the JSON that I receive from the server have the following structure:
{
"IsError":false,
"Result":{ "key1":"value", "key2":"value", ... }
}
I've followed @fernandospr '...
2
votes
1
answer
140
views
How to transfer type parameters between types?
While using retrofit with Gson I came across a situation where the provided type and the final types were different but require the same type parameter.
We have this method in a service:
@GET("...
20
votes
4
answers
13k
views
Multiple converters with Retrofit 2
I have a HATEOAS (HAL) REST service and managed to talk to it with the code below (using halarious as a conversion engine) but when I try to merge the converters (stallone and stallone2), the app will ...
1
vote
0
answers
1k
views
Callback class in Retrofit does not work when its parameter set as generic
Json:
[
{
"name": "john",
"surname": "butler",
"age": 18
},
{
"name": "bryan",
"surname": "butler",
"age": 22
},
{
"name": "adam",
"surname": "butler",
"age": 28
}
...