/**
*
*/
package ch.racic.frozenegg;
/**
* @author Michel Racic (http://www.2030.tk)
*
*/
public class HighscoreDO {
private int id;
private int level;
private String name;
private int eggs;
private long time;
/**
* @param id
* @param level
* @param name
* @param eggs
* @param time
*
* Used when reading DO from DB
*/
public HighscoreDO(int id, int level, String name, int eggs, long time) {
super();
this.eggs = eggs;
this.id = id;
this.level = level;
this.name = name;
this.time = time;
}
/**
* @param level
* @param name
* @param eggs
* @param time
*
* Used when DO not yet in DB (no ID)
*/
public HighscoreDO(int level, String name, int eggs, long time) {
super();
this.eggs = eggs;
id = -1;
this.level = level;
this.name = name;
this.time = time;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getEggs() {
return eggs;
}
public void setEggs(int eggs) {
this.eggs = eggs;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
}
|