diff --git a/src/main/java/com/example/cosmos_serversb/entities/User.java b/src/main/java/com/example/cosmos_serversb/entities/User.java index 0ee896b..df441c7 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/User.java +++ b/src/main/java/com/example/cosmos_serversb/entities/User.java @@ -1,21 +1,57 @@ package com.example.cosmos_serversb.entities; -import java.util.ArrayList; -import java.util.List; - - public class User { public String uId, uri, name, pw, iconUri; public boolean login = true; - public List token = new ArrayList(); - public User(String name, String uId,String uri,String pw,ArrayList token,String iconUri) { - this.name = name; - this.uId = uId; - this.uri=uri; - this.pw=pw; - this.token = new ArrayList();//test - //this.iconImage=iconImage; - this.iconUri=iconUri; + public User(){ + } -} + + + public User(String name, String uId, String uri, String pw, String iconUri) { + setuId(uId); + setUri(uri); + setName(name); + setPw(pw); + setIconUri(iconUri); + } + + public String getuId() { + return uId; + } + public void setuId(String uId) { + this.uId = uId; + } + + public String getUri() { + return uri; + } + public void setUri(String uri) { + this.uri = uri; + } + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getPw() { + return pw; + } + public void setPw(String pw) { + this.pw = pw; + } + public String getIconUri() { + return iconUri; + } + public void setIconUri(String iconUri) { + this.iconUri = iconUri; + } + public boolean getLogin() { + return login; + } + public void setLogin(boolean login) { + this.login = login; + } +} \ No newline at end of file