Created
May 18, 2017 13:53
-
-
Save luiseduardogfranca/dfbb7336167e8d3dbda138217c74294b to your computer and use it in GitHub Desktop.
Response with Retrofit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Response response = c.execute(); | |
if (response.isSuccessful()) { | |
Login.ID_LOGIN = (String) response.body()); | |
} else { | |
throw new LoginException(response.errorBody().string()); | |
} | |
}catch (IOException io){ | |
throw new LoginException(io.getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment