Back to project page AnyadsTodos.
The source code is released under:
GNU General Public License
If you think the Android project AnyadsTodos listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dlacours.anyadstodos; /* w w w.j a va2s. co m*/ public class Task { /*This class represents every task in the app. * It contains booleans, getters, and setters * that allow other classes to learn about * the tasks*/ protected String taskName; protected boolean isChecked; protected boolean isArchived; protected boolean isRemoved; protected boolean toEmail; public Task(String taskName) { this.taskName=taskName; this.isChecked = false; this.isArchived = false; this.isRemoved = false; this.toEmail = false; } public void setChecked(boolean checked){ isChecked = checked; } public boolean getChecked(){ return isChecked; } public void setArchived(boolean archived){ isArchived = archived; } public boolean getArchived(){ return isArchived; } public void setRemoved(boolean removed){ isRemoved = removed; } public boolean getRemoved(){ return isRemoved; } public String getTask() { return this.taskName; } public String toString(){ return getTask(); } public boolean getEmail() { return toEmail; } public void setEmail(boolean email){ toEmail = email; } }