Skip to content

Commit

Permalink
Added Settings class
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Strand Prestmo committed Feb 19, 2026
1 parent 8e9a69f commit d3ce9d4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
package ntnu.sytemutvikling.team6.models;

// Mangler unntakshåndtering
// Mangler Enhetstesting

/**
* Represents the settings for a user
*
* @Author Robin Strand Prestmo
*/
public class Settings {

private boolean lightMode;
private String language;
private boolean anonymous;

/**
* Creates settings for a user
*
* @param lightMode choose between light or dark mode
* @param language choose language
* @param anonymous choose if user is anonymous
*
* @Author Robin Strand Prestmo
*/
public Settings(boolean lightMode, String language, boolean anonymous) {
this.lightMode = lightMode;
this.language = language;
this.anonymous = anonymous;
}

public boolean getLightmode() {
return lightMode;
}

public String getLanguage() {
return language;
}

public boolean getAnonymous() {
return anonymous;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.util.UUID;

// Passord må hashes!!!
// Unntakshåndtering mangler
// Enhetstesting mangler

/**
* Represents a user.
Expand Down

0 comments on commit d3ce9d4

Please sign in to comment.