Skip to content

Instantly share code, notes, and snippets.

@orhanobut
Created September 23, 2015 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orhanobut/99f0aefa7b0487949c2c to your computer and use it in GitHub Desktop.
Save orhanobut/99f0aefa7b0487949c2c to your computer and use it in GitHub Desktop.
public class Account {
private final User user;
private final String id;
public Account(AccountResponse response) {
id = response.id;
UserResponse userResponse = response.userResponse;
if (userResponse != null) {
user = new User(response.userResponse);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment