-
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
Robin Strand Prestmo
committed
Feb 19, 2026
1 parent
8e9a69f
commit d3ce9d4
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
39 changes: 38 additions & 1 deletion
39
helpmehelpapplication/src/main/java/ntnu/sytemutvikling/team6/models/Settings.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,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; | ||
| } | ||
| } |
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