diff options
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/model')
| -rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java | 9 | 
1 files changed, 7 insertions, 2 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 index 35e81b3..9b6170b 100644 --- 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 @@ -10,6 +10,7 @@ public class Need {      }      @JsonProperty("name") private String name; +    @JsonProperty("image") private String image;      @JsonProperty("location") private String location;      @JsonProperty("id") private int id;      @JsonProperty("filterAttributes") private String[] filterAttributes; @@ -30,8 +31,9 @@ public class Need {       * @param urgent The urgency of the need       * @param description The description of the need       */ -    public Need(@JsonProperty("name") String name, @JsonProperty("location") String location, @JsonProperty("id") int id, @JsonProperty("maxGoal") double maxGoal, @JsonProperty("type") GoalType type, @JsonProperty("urgent") boolean urgent, @JsonProperty("Description") String description) { +    public Need(@JsonProperty("name") String name, @JsonProperty("image") String image, @JsonProperty("location") String location, @JsonProperty("id") int id, @JsonProperty("maxGoal") double maxGoal, @JsonProperty("type") GoalType type, @JsonProperty("urgent") boolean urgent, @JsonProperty("Description") String description) {          this.id = id; +        this.image = image;          this.location = location;          this.name = name;          this.maxGoal = maxGoal; @@ -44,14 +46,16 @@ public class Need {       * Create a new need       *       * @param name    The name of the need +     * @param image   The image representation of the need       * @param location The location of the need       * @param maxGoal The maximum goal for this need       * @param type    The type of need (monetary, physical)       * @param urgent The urgency of the need       * @param description The description of the need       */ -    public Need(String name, String location, double maxGoal, GoalType type, boolean urgent, String description) { +    public Need(String name, String image, String location, double maxGoal, GoalType type, boolean urgent, String description) {          this.name = name; +        this.image = image;          this.location = location;          this.type = type;          this.maxGoal = maxGoal; @@ -66,6 +70,7 @@ public class Need {       */      public Need(Need other) {          this.name = other.name; +        this.image = other.image;          this.location = other.location;          this.id = other.id;          this.filterAttributes = other.filterAttributes;  | 
