package com.google.sps.data;

import java.util.ArrayList;
import java.util.List;

// Class representing a User
public class User {
  private long id;
  private String email;
  private String username;
  private ArrayList<Long> planner;
  private ArrayList<Long> cookbook;
  private ArrayList<Long> userRecipes;
  // shopping list will not be implented until after MVP
  private ArrayList<String> shoppingList;

  public User(long id, String email, String username) {
    this.id = id;
    this.email = email;
    this.username = username;
    planner = new ArrayList<Long>();
    cookbook = new ArrayList<Long>();
    userRecipes = new ArrayList<Long>();
  }

  public User(long id, String email, String username, ArrayList<Long> planner, ArrayList<Long> cookbook, ArrayList<Long> userRecipes) {
    this.id = id;
    this.email = email;
    this.username = username;
    this.cookbook = cookbook;
    this.planner = planner;
    this.userRecipes = userRecipes;
  }

  public void setID(long id) {
    this.id = id;
  }

  public boolean equalIDs(long id) {
    if (this.id == id) {
      return true;
    }
    return false;
  }

  public void addRecipeToPlanner(long id) {
    planner.add(id);
  }

  public void addRecipeToCookbook(long id) {
    cookbook.add(id);
  }

  public void addRecipeToUserRecipes(long id) {
    userRecipes.add(id);
  }
}

@@ -134,18 +134,20 @@
 private 
-lo
+Stri
 ng id;%0A 
@@ -412,34 +412,36 @@
 %0A%0A  public User(
-lo
+Stri
 ng id, String em
@@ -671,18 +671,20 @@
 ic User(
-lo
+Stri
 ng id, S
@@ -986,18 +986,20 @@
 d setID(
-lo
+Stri
 ng id) %7B
@@ -1048,18 +1048,20 @@
 qualIDs(
-lo
+Stri
 ng id) %7B
@@ -1080,15 +1080,20 @@
 s.id
- == 
+.equals(
 id)
+)
  %7B%0A 

Change User's id from long to String