Last active
February 15, 2016 12:13
-
-
Save akleemans/0fb0e6ef17a8b8aa2f1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tasks; | |
import javax.xml.bind.annotation.XmlRootElement; | |
@XmlRootElement | |
public class Task { | |
private int id; | |
private String description; | |
private int urgency; | |
private String user_name; | |
private int user_id; | |
public Task() { } | |
public Task(String description, int urgency, int user_id) { | |
this.setDescription(description); | |
this.setUrgency(urgency); | |
this.setUser_id(user_id); | |
} | |
public Task(int id, String description, int urgency, int user_id, String user_name) { | |
this.setId(id); | |
this.setDescription(description); | |
this.setUrgency(urgency); | |
this.setUser_name(user_name); | |
this.setUser_id(user_id); | |
} | |
public int getId() { return id; } | |
public void setId(int id) { this.id = id; } | |
public String getDescription() { return description; } | |
public void setDescription(String description) { this.description = description; } | |
public int getUrgency() { return urgency; } | |
public void setUrgency(int urgency) { this.urgency = urgency; } | |
public String getUser_name() { return user_name; } | |
public void setUser_name(String user_name) { this.user_name = user_name; } | |
public int getUser_id() { return user_id; } | |
public void setUser_id(int user_id) { this.user_id = user_id; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment