From 6398829b0a50c59be8a8d3fd00ff89c39542a8cc Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 15 Feb 2024 16:36:28 +0100 Subject: [PATCH] Created the User.java --- .../java/de/gnmyt/mcdash/entities/User.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/de/gnmyt/mcdash/entities/User.java diff --git a/src/main/java/de/gnmyt/mcdash/entities/User.java b/src/main/java/de/gnmyt/mcdash/entities/User.java new file mode 100644 index 0000000..1d3988c --- /dev/null +++ b/src/main/java/de/gnmyt/mcdash/entities/User.java @@ -0,0 +1,37 @@ +package de.gnmyt.mcdash.entities; + +public class User { + + private final String username; + private final String password; + + /** + * Basic constructor of the user + * + * @param username The username of the user + * @param password The password of the user + */ + public User(String username, String password) { + this.username = username; + this.password = password; + } + + /** + * Gets the username of the user + * + * @return the username of the user + */ + public String getUsername() { + return username; + } + + /** + * Gets the password of the user + * + * @return the password of the user + */ + public String getPassword() { + return password; + } + +}