Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@AutoValue
public abstract class LoginStateModel {
public static Builder builder() {
return new AutoValue_LoginStateModel.Builder();
}
public abstract Builder toBuilder();
public abstract LoginState getLoginState();
@Nullable
public abstract User getLoggedInUser();
@Nullable
public abstract Throwable getLoginException();
@AutoValue.Builder
public static abstract class Builder {
public abstract Builder setLoginState(LoginState loginState);
public abstract Builder setLoginException(Throwable loginException);
public abstract Builder setLoggedInUser(User user);
public abstract LoginStateModel build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment