@@ -0,0 +1,2129 @@
+package br.com.geconp.geconp.calendar;%0A%0Aimport java.text.DateFormat;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Locale;%0A%0Aimport android.graphics.Bitmap;%0A%0Apublic class Event %7B%0A%09%0A%09private int color;%0A%09private String name;%0A%09private String description;%0A%09private String location;%0A%09private long start;%0A%09private long end;%0A%09private Bitmap image;%0A%09private long eventId;%0A%09%0A%09public static final int DEFAULT_EVENT_ICON = 0;%0A%09public static final int COLOR_RED = 1;%0A%09public static final int COLOR_BLUE = 2;%0A%09public static final int COLOR_YELLOW = 3;%0A%09public static final int COLOR_PURPLE = 4;%0A%09public static final int COLOR_GREEN = 5;%0A%09%0A%09public Event(long eventID, long startMills, long endMills)%7B%0A%09%09this.eventId = eventID;%0A%09%09this.start = startMills;%0A%09%09this.end = endMills;%0A%09%7D%0A%09%0A%09public int getColor()%7B%0A%09%09return color;%0A%09%7D%0A%09%0A%09public void setColor(int color)%7B%0A%09%09this.color = color;%0A%09%7D%0A%09%0A%09/**%0A%09 * Get the event title%0A%09 * %0A%09 * @return title%0A%09 */%0A%09public String getTitle()%7B%0A%09%09return name;%0A%09%7D%0A%09%0A%09/**%0A%09 * Get the event description%0A%09 * %0A%09 * @return description%0A%09 */%0A%09public String getDescription()%7B%0A%09%09return description;%0A%09%7D%0A%09%0A%09%0A%09public Bitmap getImage()%7B%0A%09%09return image;%0A%09%7D%0A%09%0A%09public void setDescription(String description)%7B%0A%09%09this.description = description;%0A%09%7D%0A%09%0A%09public void setLocation(String location)%7B%0A%09%09this.location = location;%0A%09%7D%0A%09%0A%09public String getLocation()%7B%0A%09%09return location;%0A%09%7D%0A%09%0A%09/**%0A%09 * Set the name of the event%0A%09 * %0A%09 * @param name%0A%09 */%0A%09public void setName(String name)%7B%0A%09%09this.name = name;%0A%09%7D%0A%09%0A%09/**%0A%09 * Gets the event id in the database%0A%09 * %0A%09 * @return event database id%0A%09 */%0A%09public long getEventId()%7B%0A%09%09return eventId;%0A%09%7D%0A%09%0A%09/**%0A%09 * Get the start date of the event%0A%09 * %0A%09 * @return start date%0A%09 */%0A%09public String getStartDate(String dateFormat)%7B%0A%09%09DateFormat df = new SimpleDateFormat(dateFormat,Locale.getDefault());%0A%09%09String date = df.format(start);%0A%09%09%0A%09%09return date;%0A%09%7D%0A%09%0A%09/**%0A%09 * Get the end date of the event%0A%09 * %0A%09 * @return end date%0A%09 */%0A%09public String getEndDate(String dateFormat)%7B%0A%09%09DateFormat df = new SimpleDateFormat(dateFormat,Locale.getDefault());%0A%09%09String date = df.format(end);%0A%09%09%0A%09%09return date;%0A%09%7D%0A%0A%7D%0A

Create Event.java