-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequestUpdate.java
39 lines (31 loc) · 952 Bytes
/
RequestUpdate.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
package com.cha0stig3r.recipe.server.model;
import java.util.List;
public class RequestUpdate {
private final String name;
private final String type;
private final String description;
private final List<String> ingredients;
private final List<String> directions;
public RequestUpdate(String name, String type, String description, String ingredients, String directions) {
this.name = name;
this.type = type;
this.description = description;
this.ingredients = ingredients.lines().toList();
this.directions = directions.lines().toList();
}
public String getName() {
return name;
}
public String getType() {
return type;
}
public String getDescription() {
return description;
}
public List<String> getIngredients() {
return ingredients;
}
public List<String> getDirections() {
return directions;
}
}