A
A
Anatoly Sergeevich2017-05-22 15:35:14
Android
Anatoly Sergeevich, 2017-05-22 15:35:14

retrofit2 response array?

Good afternoon, how can I disassemble the array from the result of which I received from retrofit2.
Returns the result.

{
     "message":"Success Authorize",
     "auth":  
              {
                 "login":"one",
                 "password":"two"
      }
}

Model.
public class Login
{
    private String message;

    public String getMessage() {
        return message;
    }
}

how to add the ability in this model so that I can still access the auth array and get "login"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2017-05-22
@NubSteel

Looks like auth is another object with two fields

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question