Class Task
- java.lang.Object
-
- edu.cnm.deepdive.teamassignmentsandroid.model.pojo.Task
-
public class Task extends Object
Created fields for Task with getters and setters.
-
-
Constructor Summary
Constructors Constructor Description Task()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Gets description of taskDate
getDueDate()
Gets due date of tasks.Group
getGroup()
gets GroupLong
getId()
Gets the task idDate
getPostDate()
Gets Date user posts to database.String
getTitle()
Gets title of taskUser
getUser()
Gets user that created a task.boolean
isCompleted()
Used to display if task has been bompleted.boolean
isConfirmedComplete()
User confirms if task was complete.void
setCompleted(boolean completed)
Sets the task completed true or false.void
setConfirmedComplete(boolean confirmedComplete)
Sets confirmation of task completionvoid
setDescription(String description)
Sets the description of the taskvoid
setDueDate(Date dueDate)
Sets date task is due.void
setPostDate(Date postDate)
Sets Date user posts to database.void
setTitle(String title)
Sets title of task
-
-
-
Method Detail
-
getId
public Long getId()
Gets the task id- Returns:
- task id with Long
-
getUser
public User getUser()
Gets user that created a task.- Returns:
- returns user as owner of task
-
getGroup
public Group getGroup()
gets Group- Returns:
- Group
-
getPostDate
public Date getPostDate()
Gets Date user posts to database.- Returns:
- Date of posting.
-
setPostDate
public void setPostDate(Date postDate)
Sets Date user posts to database.- Parameters:
postDate
- of task
-
getDueDate
public Date getDueDate()
Gets due date of tasks.- Returns:
- Date task is due.
-
setDueDate
public void setDueDate(Date dueDate)
Sets date task is due.- Parameters:
dueDate
- of task
-
isCompleted
public boolean isCompleted()
Used to display if task has been bompleted.- Returns:
- boolean for task completion.
-
setCompleted
public void setCompleted(boolean completed)
Sets the task completed true or false.- Parameters:
completed
- boolean
-
isConfirmedComplete
public boolean isConfirmedComplete()
User confirms if task was complete.- Returns:
- boolean of confirmation
-
setConfirmedComplete
public void setConfirmedComplete(boolean confirmedComplete)
Sets confirmation of task completion- Parameters:
confirmedComplete
- boolean
-
getTitle
public String getTitle()
Gets title of task- Returns:
- String of title of task
-
setTitle
public void setTitle(String title)
Sets title of task- Parameters:
title
- is String format
-
getDescription
public String getDescription()
Gets description of task- Returns:
- String of task description
-
setDescription
public void setDescription(String description)
Sets the description of the task- Parameters:
description
- of task
-
-