package com.google.sps.data;

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

// Class representing a Recipe
public class Recipe {
  private long id;
  private String recipeName;
  private long authorID;
  // image is not implemented yet
  private String imageUrl;
  private String description;
  private ArrayList<String> tags;
  private ArrayList<String> ingredients;
  private ArrayList<String> steps;
  private int popularity;

  public Recipe(long id, String recipeName, String description, ArrayList<String> tags, 
  ArrayList<String> ingredients, ArrayList<String> steps) {
    this.id = id;
    this.recipeName = recipeName;
    this.description = description;
    this.tags = tags;
    this.ingredients = ingredients;
    this.steps = steps;
    popularity = 0;
  }

  public Recipe(long id, String recipeName, String description, ArrayList<String> tags, 
  ArrayList<String> ingredients, ArrayList<String> steps, int popularity) {
    this.id = id;
    this.recipeName = recipeName;
    this.tags = tags;
    this.ingredients = ingredients;
    this.steps = steps;
    this.popularity = popularity;
  }

  public void setImageUrl(String imageUrl) {
    this.imageUrl = imageUrl;
  }

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

  public long getID() {
    return id;
  }

  public void increasePopularity() {
    popularity++;
  }
  
  public void decreasePopularity() {
    popularity--;
  }
}

@@ -186,18 +186,20 @@
 private 
-lo
+Stri
 ng autho
@@ -526,350 +526,10 @@
  %0A  
-ArrayList%3CString%3E ingredients, ArrayList%3CString%3E steps) %7B%0A    this.id = id;%0A    this.recipeName = recipeName;%0A    this.description = description;%0A    this.tags = tags;%0A    this.ingredients = ingredients;%0A    this.steps = steps;%0A    popularity = 0;%0A  %7D%0A%0A  public Recipe(long id, String recipeName, String description, ArrayList%3CString%3E tags, %0A
+  
   Ar
@@ -935,18 +935,20 @@
 uthorID(
-lo
+Stri
 ng id) %7B

Update Recipe.java