Skip to content

Commit

Permalink
Added User class
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Strand Prestmo committed Feb 19, 2026
1 parent b127e10 commit 8e9a69f
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 0 deletions.
10 changes: 10 additions & 0 deletions helpmehelpapplication/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions helpmehelpapplication/.idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions helpmehelpapplication/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions helpmehelpapplication/.idea/dictionaries/project.xml

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.

20 changes: 20 additions & 0 deletions helpmehelpapplication/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions helpmehelpapplication/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions helpmehelpapplication/.idea/vcs.xml

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

}

0 comments on commit 8e9a69f

Please sign in to comment.