com.podio.task.TaskCreate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.task;
import org.codehaus.jackson.annotate.JsonProperty;
import org.joda.time.LocalDate;
public class TaskCreate {
/**
* The text of the task
*/
private String text;
/**
* True if the task should be private, false otherwise
*/
private boolean priv;
/**
* The due date of the task, if any
*/
private LocalDate dueDate;
/**
* The user responsible for the task, no value will make the active user
* responsible
*/
private int responsible;
public TaskCreate(String text, boolean priv, LocalDate dueDate,
int responsible) {
super();
this.text = text;
this.priv = priv;
this.dueDate = dueDate;
this.responsible = responsible;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public boolean isPrivate() {
return priv;
}
public void setPrivate(boolean priv) {
this.priv = priv;
}
@JsonProperty("due_date")
public LocalDate getDueDate() {
return dueDate;
}
@JsonProperty("due_date")
public void setDueDate(LocalDate dueDate) {
this.dueDate = dueDate;
}
public int getResponsible() {
return responsible;
}
public void setResponsible(int responsible) {
this.responsible = responsible;
}
}