Skip to content

Commit

Permalink
Added getters and setters to User
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsp committed Feb 25, 2026
1 parent f0b81dd commit 6cc3bbb
Showing 1 changed file with 40 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
* @author Robin Strand Prestmo
*/
public class User {
private UUID id;
private final UUID id;
private String name;
private String email;
private String password;
private String role;
private Settings settings;
private Inbox inbox;
private final String role;
private final Settings settings;
private final Inbox inbox;

/**
* Creates a new user
Expand Down Expand Up @@ -51,6 +51,42 @@ public User(UUID id,

// Add Getters

public UUID getId() {
return id;
}

public String getName() {
return name;
}

public String getEmail() {
return email;
}

public String getRole() {
return role;
}

public Settings getSettings() {
return settings;
}

public Inbox getInbox() {
return inbox;
}

// Add Setters


public void setName(String name) {
this.name = name;
}

public void setPassword(String password) {
this.password = password;
}

public void setEmail(String email) {
this.email = email;
}
}

0 comments on commit 6cc3bbb

Please sign in to comment.