Last active
May 16, 2018 18:18
-
-
Save alin-turcu/3c49b996f13636670cf97b82759feea2 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
import com.groupon.grox.Action; | |
public class LoginSuccessfulAction implements Action<LoginStateModel> { | |
private User user | |
public LoginSuccessfulAction(User user){ | |
this.user = user; | |
} | |
@Override | |
public State newState(LoginStateModel oldState) { | |
return oldState.toBuilder() | |
.setLoginState(LOGIN_SUCCESS) | |
.setLoggedInUser(user) | |
.build()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment