Skip to content

Instantly share code, notes, and snippets.

@Pacane
Created February 17, 2016 19: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 Pacane/2ad21f34de00f9d0ca0f to your computer and use it in GitHub Desktop.
Save Pacane/2ad21f34de00f9d0ca0f to your computer and use it in GitHub Desktop.
@Override
public void saveUser(User user) {
userApiResourceDelegate.withCallback(new RestCallbackImpl<Void>() {
@Override
public void onSuccess(Void aVoid) {
PlaceRequest usersListPlace = new PlaceRequest.Builder()
.nameToken(NameTokens.USERS)
.build();
placeManager.revealPlace(usersListPlace);
}
}).saveUser(user.getId(), user);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment