Is it possible to use retrofit without model class?

前端 未结 5 1186
时光说笑
时光说笑 2021-01-02 02:38

i have problem to use model class in retrofit lib. A backend side field name has changed.

Is it possible to get response without model class?

5条回答
  •  滥情空心
    2021-01-02 03:05

    Is it possible to get response without model class

    If I get you right - sure. You do not have to make response JSON auto-converted. You can do this easily by hand if needed, by retrieving raw response. Once you got that you can do whatever you need.

提交回复
热议问题