Skip to content

Commit

Permalink
feat: created Organisation class
Browse files Browse the repository at this point in the history
  • Loading branch information
emilfa committed Feb 26, 2026
1 parent 7e166c7 commit 530223b
Showing 1 changed file with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
package edu.group5.app.model.organization;

import java.util.Objects;

public class Organization {

private final int orgNumber;
private final String name;
private final boolean trusted;
private final String websiteURL;
private final boolean isPreApproved;
private final String description;

public Organization(int orgNumber, String name, boolean trusted, String websiteURL, boolean isPreApproved, String description) {
this.orgNumber = orgNumber;
this.name = Objects.requireNonNull(name, "name cannot be null");
this.trusted = trusted;
this.websiteURL = Objects.requireNonNull(websiteURL, "websiteURL cannot be null");
this.isPreApproved = isPreApproved;
this.description = Objects.requireNonNull(description, "description cannot be null");
}

public int getOrgNumber() {
return orgNumber;
}

public String getName() {
return name;
}

public boolean isTrusted() {
return trusted;
}

public String getWebsiteURL() {
return websiteURL;
}

public boolean isPreApproved() {
return isPreApproved;
}

public String getDescription() {
return description;
}
}

0 comments on commit 530223b

Please sign in to comment.