2011-01-10 00:24:08 -06:00
|
|
|
package com.jdbernard.timeanalyzer;
|
2011-01-09 15:11:36 -06:00
|
|
|
|
2011-01-10 00:24:08 -06:00
|
|
|
import org.joda.time.DateTime;
|
|
|
|
import org.joda.time.Duration;
|
2011-01-09 15:11:36 -06:00
|
|
|
|
2011-01-10 00:24:08 -06:00
|
|
|
public class Entry {
|
|
|
|
|
|
|
|
public String description;
|
|
|
|
public String notes;
|
|
|
|
public DateTime start;
|
|
|
|
public Duration duration;
|
2011-01-09 15:11:36 -06:00
|
|
|
public Category category;
|
2011-01-10 00:24:08 -06:00
|
|
|
|
|
|
|
public Entry(Category c, String description, DateTime start,
|
|
|
|
Duration duration) {
|
|
|
|
this(c, description, "", start, duration);
|
|
|
|
}
|
|
|
|
|
|
|
|
public Entry(Category c, Event e) {
|
|
|
|
this(c, e.description, e.notes, e.start, e.duration);
|
|
|
|
}
|
|
|
|
|
|
|
|
public Entry(Category c, String description, String notes, DateTime start,
|
|
|
|
Duration duration) {
|
|
|
|
this.description = description;
|
|
|
|
this.notes = notes;
|
|
|
|
this.start = start;
|
|
|
|
this.duration = duration;
|
|
|
|
this.category = category;
|
|
|
|
}
|
|
|
|
|
2011-01-09 15:11:36 -06:00
|
|
|
}
|