Last active
July 23, 2018 22:08
-
-
Save ataulm/b33bbb294850581b6dce25816a1b34ef to your computer and use it in GitHub Desktop.
This file contains 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
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