Skip to content

Commit

Permalink
Updated Charity
Browse files Browse the repository at this point in the history
Changed description parameter to only contain URL to pass to the URLCharityScraper
  • Loading branch information
roaraf committed Apr 7, 2026
1 parent 2d81972 commit 3662815
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class Charity {
/* Name of the charity */
private String name;

/* Description of the charity's mission and activities */
private String description;
/* URL of the charity */
private String url;

/* Is the charity verified? */
private String status;
Expand All @@ -34,6 +34,7 @@ public class Charity {
/* List that contains the charity's Feedbacks */
private List<Feedback> feedbacks;


/**
* Contructor for creating a new charity. Taylored to match data given from Api. Other attributes
* will just be initialized as empty
Expand All @@ -48,7 +49,7 @@ public Charity(
this.UUID = java.util.UUID.randomUUID();
this.org_number = org_number.replaceAll("\\s", "");
this.name = name;
this.description = "Les mer her: " + link;
this.url = link;
this.is_pre_approved = is_pre_approved;
this.status = status;
this.feedbacks = new ArrayList<>();
Expand All @@ -74,7 +75,7 @@ public Charity(
this.UUID = UUID.fromString(uuid);
this.org_number = org_number.replaceAll("\\s", "");
this.name = name;
this.description = link;
this.url = link;
this.is_pre_approved = is_pre_approved;
this.status = status;
this.feedbacks = new ArrayList<>();
Expand Down Expand Up @@ -110,8 +111,8 @@ public String getName() {
return name;
}

public String getDescription() {
return description;
public String getURL() {
return this.url;
}

/** Setter for verification status. This one sets the charity as verified. */
Expand Down

0 comments on commit 3662815

Please sign in to comment.