-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,55 @@ | ||
| package ntnu.sytemutvikling.team6.models; | ||
|
|
||
| import java.util.UUID; | ||
|
|
||
| // Passord må hashes!!! | ||
|
|
||
| /** | ||
| * Represents a user. | ||
| * | ||
| * @Author Robin Strand Prestmo | ||
| */ | ||
| public class User { | ||
| private UUID id; | ||
| private String name; | ||
| private String email; | ||
| private String password; | ||
| private String role; | ||
| private Settings settings; | ||
| private Inbox inbox; | ||
|
|
||
| /** | ||
| * Creates a new user | ||
| * | ||
| * @param id gives the user a unique identifier with UUID | ||
| * @param name the name of the user | ||
| * @param email the email of the user | ||
| * @param password the password for the user | ||
| * @param role users role | ||
| * @param settings the user´s settings | ||
| * @param inbox the user´s inbox | ||
| * | ||
| * @Author Robin Strand Prestmo | ||
| */ | ||
| public User(UUID id, | ||
| String name, | ||
| String email, | ||
| String password, | ||
| String role, | ||
| Settings settings, | ||
| Inbox inbox) { | ||
|
|
||
| this.id = id; | ||
| this.name = name; | ||
| this.email = email; | ||
| this.password = password; | ||
| this.role = role; | ||
| this.settings = settings; | ||
| this.inbox = inbox; | ||
| } | ||
|
|
||
| // Add Getters | ||
|
|
||
| // Add Setters | ||
|
|
||
| } |