Skip to content

Commit

Permalink
basics for curated food recommendations #25
Browse files Browse the repository at this point in the history
  • Loading branch information
FAUSheppy committed May 30, 2022
1 parent a107fff commit 9321f8b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions app/src/main/java/com/example/nutritionapp/other/CuratedFoods.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.example.nutritionapp.other;

import java.util.ArrayList;
import java.util.HashMap;

public class CuratedFoods {
static HashMap<NutritionElement, String[]> curated = new HashMap<>();

static String[] VITAMIN_A_LIST = { "Carrot", "Sweet Potato", "Spinach", "Broccoli", "Pumpkin", "Lettuce" };
static String[] VITAMIN_C_LIST = { "Kiwi", "Orange", "Banana", "Apple", "Peas"};
static String[] VITAMIN_B6_LIST = { "Salmon" };
static String[] VITAMIN_D_LIST = { "Egg", "Cod", "Sun" };
static String[] VITAMIN_E_LIST = { "Sunflower Seeds", "Almonds", "Avocado", "Peanuts" };
static String[] VITAMIN_K_LIST = { "Lettuce", "Spinach" };
static String[] IRON_LIST = { "Oatmeal", "Tofu", "Red Meat", "Dark Chocolate" };
static String[] MAGNESIUM_LIST = { "Oatmeal", "Banana", "Dark Chocolate", "Nuts", "Tofu" };
static String[] CALCIUM_LIST = { "Mild", "Cheese", "Yogurt" };
static String[] SELENIUM_LIST = { "Carrot" };
static String[] POTASSIUM_LIST = { "Apple" };

static{
curated.put(NutritionElement.VITAMIN_A, VITAMIN_A_LIST );
curated.put(NutritionElement.VITAMIN_C, VITAMIN_C_LIST );
curated.put(NutritionElement.VITAMIN_D, VITAMIN_D_LIST );
curated.put(NutritionElement.VITAMIN_E, VITAMIN_E_LIST );
curated.put(NutritionElement.VITAMIN_K, VITAMIN_K_LIST );
curated.put(NutritionElement.VITAMIN_B6, VITAMIN_B6_LIST);
curated.put(NutritionElement.IRON, IRON_LIST );
curated.put(NutritionElement.MAGNESIUM, MAGNESIUM_LIST );
curated.put(NutritionElement.CALCIUM, CALCIUM_LIST );
curated.put(NutritionElement.POTASSIUM, POTASSIUM_LIST );
curated.put(NutritionElement.SELENIUM, SELENIUM_LIST );
}
public static ArrayList<Food> foodsForNutrition(NutritionElement el){
ArrayList<Food> foods = new ArrayList<>();
return foods;
}
}

0 comments on commit 9321f8b

Please sign in to comment.