-
Christian Dresen authoredChristian Dresen authored
User.java 937 B
package ms.itsecteam.warpdrink.objects;
import javax.xml.bind.annotation.XmlRootElement;
@SuppressWarnings("restriction")
@XmlRootElement
public class User {
private int userid;
private String name;
private double credit;
public User() {
super();
}
public User(int userid, String name, double credit) {
super();
this.userid = userid;
this.name = name;
this.credit = credit;
}
public int getUserid() {
return userid;
}
public void setUserid(int userid) {
this.userid = userid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getCredit() {
return credit;
}
public void setCredit(double credit) {
this.credit = credit;
}
public String toString() {
return "[Name: "+this.name+", Credit:"+this.credit+"]";
}
}