Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package it.ytnoos.randomnumbergenerator.utils;
- import com.google.gson.Gson;
- import it.ytnoos.randomnumbergenerator.Main;
- public class Account {
- private String email, username, password, json;
- public Account(String email, String username, String password) {
- this.email = email;
- this.username = username;
- this.password = password;
- Main.accounts.getAccounts().add(this);
- json = new Gson().toJson(Main.accounts);
- }
- public String getEmail() {
- return email;
- }
- public String getUsername() {
- return username;
- }
- public String getPassword() {
- return password;
- }
- public String getJson() {
- return json;
- }
- }
Add Comment
Please, Sign In to add comment