All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.podio.task.TaskCreate Maven / Gradle / Ivy

There is a newer version: 0.7.9
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy