Skip to content

Commit

Permalink
Added git ignore to avoid pointless configs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Feb 19, 2026
1 parent 6bb96d8 commit 8a45611
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Adrian
/vscode
Original file line number Diff line number Diff line change
@@ -1,4 +1,78 @@
/**
* This class represents a charity organization. It contains information about the charity such as its name, description, total donations, verification status, and category.
*
* @author Adrian Balunan
*/
package ntnu.sytemutvikling.team6.models;

import java.util.UUID;

abstract class Charity {
/* UUID for uniquely identifying each charity */
private UUID id;

/* Name of the charity */
private String name;

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

/* Total Donations received */
private int totalDonations;

/* Is the charity verified? */
private boolean isVerified;

/* Category for the charity */
private String category;

/**
* Konstructor for creating a new charity.
* The ID is generated automatically using UUID.
* Total donations are initialized to 0.
* The charity is unverified by default.
*
* @param name
* @param description
* @param category
*/
public Charity(String name, String description, String category) {
this.id = UUID.randomUUID();
this.name = name;
this.description = description;
this.totalDonations = 0;
this.isVerified = false;
this.category = category;
}

/**
* Getters for the charity's attributes.
*
* @return
*/
public UUID getId() {
return id;
}
public String getCategory() {
return category;
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public int getTotalDonations() {
return totalDonations;
}
public boolean isVerified() {
return isVerified;
}

public void setVerified() {
this.isVerified = true;
}
public void setUnverified() {
this.isVerified = false;
}
}
Binary file not shown.

0 comments on commit 8a45611

Please sign in to comment.