mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Created Account class
This commit is contained in:
parent
e0ed5b2cda
commit
ab779a4fce
28
core/src/gdx/diablo/server/Account.java
Normal file
28
core/src/gdx/diablo/server/Account.java
Normal file
@ -0,0 +1,28 @@
|
||||
package gdx.diablo.server;
|
||||
|
||||
public class Account {
|
||||
|
||||
private String account;
|
||||
private String password;
|
||||
|
||||
private Account() {}
|
||||
|
||||
private Account(Builder builder) {
|
||||
account = builder.account;
|
||||
password = "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
public String account;
|
||||
public String hash;
|
||||
|
||||
public Account build() {
|
||||
return new Account(this);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user