package com.example.nemophila.entities; import java.util.HashMap; import java.util.Map; public class Account { private String name; private String id; private String pw; private String token; private HashMap<String, Post> posts = new HashMap<>(); //Getter public String getName() { return name; } public String getId() { return id; } public String getPw() { return pw; } public String getToken() { return token; } public HashMap<String, Post> getPosts() { return posts; } //Setter public void setName(String name) { this.name = name; } public void setId(String id) { this.id = id; } public void setPw(String pw) { this.pw = pw; } public void setToken(String token) { this.token = token; } public void setPosts(HashMap<String, Post> posts) { this.posts = posts; } public Account(AccountJson aj){ this.name = aj.getName(); this.id = aj.getId(); this.token = aj.getToken(); } }