aboutsummaryrefslogtreecommitdiff
path: root/ufund-api
diff options
context:
space:
mode:
authorAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-02-15 15:08:25 -0500
committerAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-02-15 15:08:25 -0500
commit6cb5af1921090f89b1345e718ab2eb10eb7d4d7a (patch)
tree2d492a0e3462e5dfe4a829be8a5088b1f2f501b2 /ufund-api
parentbc115531d69c1ca4f33eaa102d84604a49eec3ca (diff)
downloadJellySolutions-6cb5af1921090f89b1345e718ab2eb10eb7d4d7a.tar.gz
JellySolutions-6cb5af1921090f89b1345e718ab2eb10eb7d4d7a.tar.bz2
JellySolutions-6cb5af1921090f89b1345e718ab2eb10eb7d4d7a.zip
added ID field to Need Class. -ak
Diffstat (limited to 'ufund-api')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/Need.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/Need.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/Need.java
index f8d9d52..198b3a3 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/Need.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/Need.java
@@ -8,12 +8,14 @@ public class Need {
}
private String name;
+ private int id;
private String[] filterAttributes;
private GoalType type;
private double maxGoal;
private double current;
- public Need(String name, double maxGoal, GoalType type) {
+ public Need(String name, int id, double maxGoal, GoalType type) {
+ this.id = id;
this.name = name;
this.maxGoal = maxGoal;
this.type = type;
@@ -23,6 +25,10 @@ public class Need {
return name;
}
+ public int getID() {
+ return id;
+ }
+
public String[] getFilterAttributes() {
return filterAttributes;
}