Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ataulm
Last active July 23, 2018 22:08
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 ataulm/b33bbb294850581b6dce25816a1b34ef to your computer and use it in GitHub Desktop.
Save ataulm/b33bbb294850581b6dce25816a1b34ef to your computer and use it in GitHub Desktop.
class Presenter implements IPresenter {
IUserModel userModel;
IView view;
Presenter(IUserModel userModel, IView view) {
this.userModel = userModel;
this.view = view;
}
@Override
public void onLoad() {
User user = userModel.getUser();
String displayName = user.lastName() + ", " + user.firstName();
view.setName(displayName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment