Created the User.java
This commit is contained in:
parent
e31378739e
commit
6398829b0a
37
src/main/java/de/gnmyt/mcdash/entities/User.java
Normal file
37
src/main/java/de/gnmyt/mcdash/entities/User.java
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user