// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.launchpod.data;

import java.util.ArrayList;

/** An item on a comment list. */
public final class LoginStatus {
  public boolean isLoggedIn;
  public String message;
  public ArrayList<UserFeed> feeds;

  public static final String USER_FEED_KEY = "UserFeed";
  public static final String TITLE_KEY = "title";
  public static final String DESCRIPTION_KEY = "description";
  public static final String NAME_KEY = "name";
  public static final String EMAIL_KEY = "email";
  public static final String XML_STRING_KEY = "xmlString";
  public static final String POST_TIME_KEY = "postTime";
  public static final String TIMESTAMP_KEY = "timestamp";

  private LoginStatus(boolean isLoggedIn, String message, ArrayList<UserFeed> feeds) {
    this.isLoggedIn = isLoggedIn;
    this.message = message;
    this.feeds = feeds;
  }

  public static LoginStatus forSuccessfulLogin(String message, ArrayList<UserFeed> feeds) {
    // this.isLoggedIn = true;
    // this.message = message;
    // this.feeds = feeds;
    return new LoginStatus(true, message, feeds);
  }

  public static LoginStatus forFailedLogin(String message) {
    // this.isLoggedIn = false;
    // this.message = message;
    // this.feeds = new ArrayList<UserFeed>();
    return new LoginStatus(false, message, new ArrayList<UserFeed>());
  }
}

// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.launchpod.data;

import java.util.ArrayList;

/** An item on a comment list. */
public final class LoginStatus {
  public boolean isLoggedIn;
  public String message;
  public ArrayList<UserFeed> feeds;

  public static final String USER_FEED_KEY = "UserFeed";
  public static final String TITLE_KEY = "title";
  public static final String DESCRIPTION_KEY = "description";
  public static final String NAME_KEY = "name";
  public static final String EMAIL_KEY = "email";
  public static final String XML_STRING_KEY = "xmlString";
  public static final String POST_TIME_KEY = "postTime";
  public static final String TIMESTAMP_KEY = "timestamp";

  private LoginStatus(boolean isLoggedIn, String message, ArrayList<UserFeed> feeds) {
    this.isLoggedIn = isLoggedIn;
    this.message = message;
    this.feeds = feeds;
  }

  public static LoginStatus forSuccessfulLogin(String message, ArrayList<UserFeed> feeds) {
    return new LoginStatus(true, message, feeds);
  }

  public static LoginStatus forFailedLogin(String message) {
    return new LoginStatus(false, message, new ArrayList<UserFeed>());
  }
}

Remove comments.