/** * * @author Diorgenes Felipe Grzesiuk * @copyright Copyright 2007-2008 Prognus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Foobar; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package br.com.prognus.psync.items.model; import java.sql.Timestamp; import com.funambol.common.pim.calendar.Calendar; public class CalendarWrapper { // --------------------------------------------------------------- // Properties Calendar c; public Calendar getCalendar() { return c; } String id; public String getId() { return id; } public void setId(String id) { this.id = id; } String userId; public String getUserId() { return userId; } Timestamp lastUpdate; public void setLastUpdate(Timestamp lastUpdate) { this.lastUpdate = lastUpdate; } public Timestamp getLastUpdate() { return lastUpdate; } char status; public void setStatus(char status) { this.status = status; } public char getStatus() { return status; } // ------------------------------------------------------------- // Constructors /** * Creates a new instance of CalendarWrapper. * * * @param id * the unique ID of this calendar * @param userId * the ID of the user who owns this calendar * @param c * the wrapped Calendar object */ public CalendarWrapper(String uid, String userId, Calendar c) { this.id = uid; this.userId = userId; this.c = c; } }