public ServerRecipe(Recipe recipe) { this.author = recipe.getAuthor(); this.title = recipe.getTitle(); this.instructions = recipe.getInstructions(); this.ingredients = recipe.getIngredients(); this.uri = recipe.getUri(); ArrayList<Photo> photos = recipe.getPhotos(); this.photos = new ArrayList<ServerPhoto>(); ServerPhoto temp; for (Photo p : photos) { temp = new ServerPhoto(p); this.photos.add(temp); } }