/**
*
*/
package net.tasksnow.model.cards;
import java.io.Serializable;
import java.util.Date;
/**
* @author D056974
*
*/
public class Project implements Serializable {
private int id;
private String name = "";
private Date end_date = null;
private String descr = "";
private boolean done;
private int no_tasks;
private int no_done_task;
public Project(int id, String name, Date end_date, String descr, boolean done, int no_tasks, int no_done_tasks) {
this.id = id;
this.name = name;
this.end_date = end_date;
this.descr = descr;
this.done = done;
this.no_tasks = no_tasks;
this.no_done_task = no_done_tasks;
}
public Project() {
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name
* the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the end_date
*/
public Date getEnd_date() {
return end_date;
}
/**
* @param end_date
* the end_date to set
*/
public void setEnd_date(Date end_date) {
this.end_date = end_date;
}
/**
* @return the descr
*/
public String getDescr() {
return descr;
}
/**
* @param descr
* the descr to set
*/
public void setDescr(String descr) {
this.descr = descr;
}
/**
* @return the done
*/
public boolean isDone() {
return done;
}
/**
* @param done
* the done to set
*/
public void setDone(boolean done) {
this.done = done;
}
/**
* @return the no_tasks
*/
public int getNo_tasks() {
return no_tasks;
}
/**
* @param no_tasks
* the no_tasks to set
*/
public void setNo_tasks(int no_tasks) {
this.no_tasks = no_tasks;
}
/**
* @return the no_done_task
*/
public int getNo_done_task() {
return no_done_task;
}
/**
* @param no_done_task
* the no_done_task to set
*/
public void setNo_done_task(int no_done_task) {
this.no_done_task = no_done_task;
}
@Override
public String toString() {
return " " + this.id;
}
}