aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-02-16 11:05:59 -0500
committersowgro <tpoke.ferrari@gmail.com>2025-02-16 11:05:59 -0500
commitbe155cb28c8c5662a6dd9ce9268b06869087b4a0 (patch)
tree987aa467d7a298931bfe2ea363c8f8d2b186f5ca /ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java
parenta2dbadb51d61cb8b16965ed895144050c1dc3c9a (diff)
downloadJellySolutions-be155cb28c8c5662a6dd9ce9268b06869087b4a0.tar.gz
JellySolutions-be155cb28c8c5662a6dd9ce9268b06869087b4a0.tar.bz2
JellySolutions-be155cb28c8c5662a6dd9ce9268b06869087b4a0.zip
Organize into sub-packages
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java67
1 files changed, 67 insertions, 0 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java
new file mode 100644
index 0000000..df65032
--- /dev/null
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java
@@ -0,0 +1,67 @@
+package com.ufund.api.ufundapi.model;
+
+public class Need {
+
+ public enum GoalType {
+ MONETARY,
+ PHYSICAL
+ }
+
+ private String name;
+ private int id;
+ private String[] filterAttributes;
+ final private GoalType type;
+ private double maxGoal;
+ private double current;
+
+ public Need(String name, int id, double maxGoal, GoalType type) {
+ this.id = id;
+ this.name = name;
+ this.maxGoal = maxGoal;
+ this.type = type;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public int getID() {
+ return id;
+ }
+
+ public String[] getFilterAttributes() {
+ return filterAttributes;
+ }
+
+ public GoalType getType() {
+ return type;
+ }
+
+ public double getMaxGoal() {
+ return maxGoal;
+ }
+
+ public double getCurrent() {
+ return current;
+ }
+
+ public void setCurrent(double current) {
+ this.current = current;
+ }
+
+ public void setFilterAttributes(String[] filterAttributes) {
+ this.filterAttributes = filterAttributes;
+ }
+
+ public void setMaxGoal(double maxGoal) {
+ this.maxGoal = maxGoal;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void setID(int id){
+ this.id = id;
+ }
+} \ No newline at end of file