-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
1 deletion.
There are no files selected for viewing
42 changes: 41 additions & 1 deletion
42
src/main/java/edu/group5/app/model/organization/Organization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
| } | ||
| } |