Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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