package com.google.sps.data;

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

// Class representing a Recipe
public class Recipe {
  private ArrayList<String> ingredients;
  private ArrayList<String> steps;
  private ArrayList<String> tags;
  private String authorID;
  private String description;
  private String imageBlobKey;
  private String recipeName;
  private int popularity;
  private long id;

  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.description = description;
    this.ingredients = ingredients;
    this.steps = steps;
    this.popularity = popularity;
  }

  public void setImageBlobKey(String blobKey) {
    imageBlobKey = blobKey;
  }

  public void setAuthorId(String id) {
    authorID = id;
  }

  public long getId() {
    return id;
  }

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

@@ -444,16 +444,37 @@
 ipeName,
+ String imageBlobKey,
  String 
@@ -511,16 +511,16 @@
  tags, %0A
-
       Ar
@@ -643,16 +643,54 @@
 peName;%0A
+    this.imageBlobKey = imageBlobKey;%0A
     this
@@ -844,86 +844,34 @@
 %0A%0A  
-public void setImageBlobKey(String blobKey) %7B%0A    imageBlobKey = blobKey;%0A  %7D%0A
+// haven't implemented yet
 %0A  p

change Recipe constructor to include imageBlobKey