package com.google.sps.data;

import java.util.ArrayList;
import java.util.List;
import java.time.format.DateTimeFormatter;  
import java.time.LocalDateTime;
import java.time.format.FormatStyle;

// Class representing a Recipe
public class Recipe {
  // it's not done yet and I'm sure I'm going to add a bunch more methods but here's what I have so far
  private long id;
  private String recipeName;
  private long authorID;
  private String imageUrl;
  private ArrayList<String> tags;
  private ArrayList<String> ingredients;
  private ArrayList<String> steps;
  private int popularity;

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

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

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

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

}

@@ -970,24 +970,27 @@
 d = id;%0A  %7D%0A
+  %0A
   public voi
@@ -1097,16 +1097,19 @@
 ++;%0A  %7D%0A
+  %0A
   public
@@ -1159,11 +1159,10 @@
 --;%0A  %7D%0A
-%0A
 %7D%0A

Update Recipe.java