I am using Asycntask for handling my service. However, I want to use Retrofit and like to get some advice before moving on. My json services are like following. All of them have a result JSONObject and data(JSONObject or JSONArray). When I look at some tutorials, it says retrofit works with GSON and I have to convert my models to GSON format(http://www.jsonschema2pojo.org/). The thing I want to learn is, should I also add this result part of my services into my model. While using Asynctask, I am parsing result part and if the message is "ok", i start my data parsing. If message is not "ok", then I show an alert dialog with message. Can I get some advice about that?
{
result: {
code: 0,
message: "OK",
dateTime: "20160204135212",
},
movie: [
{
name: "Movie 1",
category: "drama"
},
{
name: "Movie 2"
category: "comedy"
}
]
}