diff options
author | benal01 <bja4245@rit.edu> | 2025-03-29 15:01:12 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-29 15:01:12 -0400 |
commit | e0a3f2c2c0fec40aa50c8889e343a1dbc7f9d7fb (patch) | |
tree | 7b8c9811964e566ed4bc930e929301990538b82e /ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java | |
parent | 61b5b762b150c82e7d48190bcfe3416bfea96059 (diff) | |
download | JellySolutions-e0a3f2c2c0fec40aa50c8889e343a1dbc7f9d7fb.tar.gz JellySolutions-e0a3f2c2c0fec40aa50c8889e343a1dbc7f9d7fb.tar.bz2 JellySolutions-e0a3f2c2c0fec40aa50c8889e343a1dbc7f9d7fb.zip |
API functionality for urgency and location
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java index 2398745..d09afb4 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java @@ -28,7 +28,7 @@ public class CupboardService { * @throws IOException Thrown if there was any issue saving the data * @throws DuplicateKeyException If there already exists a need with the same name */ - public Need createNeed(String name, double maxGoal, Need.GoalType goalType) throws IOException, DuplicateKeyException { + public Need createNeed(String name, String location, double maxGoal, Need.GoalType goalType, boolean urgent) throws IOException, DuplicateKeyException { if (maxGoal <= 0) { throw new IllegalArgumentException("Max Goal must be greater than zero"); @@ -40,7 +40,7 @@ public class CupboardService { } } - Need need = new Need(name, goalType, maxGoal); + Need need = new Need(name, location, goalType, maxGoal, urgent); return cupboardDAO.addNeed(need); } |