-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDay.java
128 lines (99 loc) · 2.44 KB
/
Day.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package gritnessApp;
import java.time.LocalDate;
import java.util.*;
// Ryan
public class Day {
private LocalDate date;
ArrayList<Workout> workouts;
ArrayList<Meal> meals;
// update these things as things are added/removed
int totalCalories;
int totalProtein;
int totalCarbs;
int totalFiber;
int totalSugar;
int totalFat;
int totalSodium;
int totalCaloriesBurned;
int totalExerciseMinutes;
Day() {
LocalDate date = LocalDate.now();
workouts = new ArrayList<Workout>();
meals = new ArrayList<Meal>();
}
public void addWorkout(String name) {
workouts.add(new Workout(name));
}
public LocalDate getDate() {
return date;
}
public void setDate(LocalDate date) {
this.date = date;
}
public ArrayList<Workout> getWorkouts() {
return workouts;
}
public void setWorkouts(ArrayList<Workout> workouts) {
this.workouts = workouts;
}
public ArrayList<Meal> getMeals() {
return meals;
}
public void setMeals(ArrayList<Meal> meals) {
this.meals = meals;
}
public int getTotalCalories() {
return totalCalories;
}
public void setTotalCalories(int totalCalories) {
this.totalCalories = totalCalories;
}
public int getTotalProtein() {
return totalProtein;
}
public void setTotalProtein(int totalProtein) {
this.totalProtein = totalProtein;
}
public int getTotalCarbs() {
return totalCarbs;
}
public void setTotalCarbs(int totalCarbs) {
this.totalCarbs = totalCarbs;
}
public int getTotalFiber() {
return totalFiber;
}
public void setTotalFiber(int totalFiber) {
this.totalFiber = totalFiber;
}
public int getTotalSugar() {
return totalSugar;
}
public void setTotalSugar(int totalSugar) {
this.totalSugar = totalSugar;
}
public int getTotalFat() {
return totalFat;
}
public void setTotalFat(int totalFat) {
this.totalFat = totalFat;
}
public int getTotalSodium() {
return totalSodium;
}
public void setTotalSodium(int totalSodium) {
this.totalSodium = totalSodium;
}
public int getTotalCaloriesBurned() {
return totalCaloriesBurned;
}
public void setTotalCaloriesBurned(int totalCaloriesBurned) {
this.totalCaloriesBurned = totalCaloriesBurned;
}
public int getTotalExerciseMinutes() {
return totalExerciseMinutes;
}
public void setTotalExerciseMinutes(int totalExerciseMinutes) {
this.totalExerciseMinutes = totalExerciseMinutes;
}
}