source: contrib/funambol/trunk/modules/psync/src/main/java/br/com/prognus/psync/items/model/CalendarWrapper.java @ 2082

Revision 2082, 2.0 KB checked in by emersonfaria, 14 years ago (diff)

Ticket #927 - Reestruturacao dos diretorios do Funambol

Line 
1/**
2 *
3 * @author Diorgenes Felipe Grzesiuk <diorgenes@prognus.com.br>
4 * @copyright Copyright 2007-2008 Prognus
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Foobar; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19package br.com.prognus.psync.items.model;
20
21import java.sql.Timestamp;
22
23import com.funambol.common.pim.calendar.Calendar;
24
25public class CalendarWrapper {
26
27        // ---------------------------------------------------------------
28        // Properties
29
30        Calendar c;
31
32        public Calendar getCalendar() {
33                return c;
34        }
35
36        String id;
37
38        public String getId() {
39                return id;
40        }
41
42        public void setId(String id) {
43                this.id = id;
44        }
45
46        String userId;
47
48        public String getUserId() {
49                return userId;
50        }
51
52        Timestamp lastUpdate;
53
54        public void setLastUpdate(Timestamp lastUpdate) {
55                this.lastUpdate = lastUpdate;
56        }
57
58        public Timestamp getLastUpdate() {
59                return lastUpdate;
60        }
61
62        char status;
63
64        public void setStatus(char status) {
65                this.status = status;
66        }
67
68        public char getStatus() {
69                return status;
70        }
71
72        // -------------------------------------------------------------
73        // Constructors
74
75        /**
76         * Creates a new instance of CalendarWrapper.
77         *
78         *
79         * @param id
80         *            the unique ID of this calendar
81         * @param userId
82         *            the ID of the user who owns this calendar
83         * @param c
84         *            the wrapped Calendar object
85         */
86        public CalendarWrapper(String uid, String userId, Calendar c) {
87
88                this.id = uid;
89                this.userId = userId;
90                this.c = c;
91        }
92
93}
Note: See TracBrowser for help on using the repository browser.