[2082] | 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 | */ |
---|
| 19 | package br.com.prognus.psync.items.model; |
---|
| 20 | |
---|
| 21 | import java.sql.Timestamp; |
---|
| 22 | |
---|
| 23 | import com.funambol.common.pim.contact.Contact; |
---|
| 24 | |
---|
| 25 | public class ContactWrapper { |
---|
| 26 | |
---|
| 27 | // --------------------------------------------------------------- |
---|
| 28 | // Properties |
---|
| 29 | |
---|
| 30 | Contact c; |
---|
| 31 | |
---|
| 32 | public Contact getContact() { |
---|
| 33 | return this.c; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | String userId; |
---|
| 37 | |
---|
| 38 | public String getUserId() { |
---|
| 39 | return this.userId; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | String id; |
---|
| 43 | |
---|
| 44 | public void setId(String id) { |
---|
| 45 | this.id = id; |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | public String getId() { |
---|
| 49 | return this.id; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | Timestamp lastUpdate; |
---|
| 53 | |
---|
| 54 | public void setLastUpdate(Timestamp lastUpdate) { |
---|
| 55 | this.lastUpdate = lastUpdate; |
---|
| 56 | } |
---|
| 57 | |
---|
| 58 | public Timestamp getLastUpdate() { |
---|
| 59 | return this.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 this.status; |
---|
| 70 | } |
---|
| 71 | |
---|
| 72 | // ------------------------------------------------------------- |
---|
| 73 | // Constructors |
---|
| 74 | |
---|
| 75 | /** |
---|
| 76 | * Creates a new instance of ContactWrapper. |
---|
| 77 | * |
---|
| 78 | * @param id |
---|
| 79 | * the unique ID of this wrapper |
---|
| 80 | * @param userId |
---|
| 81 | * the ID of the user who owns this contact |
---|
| 82 | * @param c |
---|
| 83 | * the wrapped Contact object |
---|
| 84 | */ |
---|
| 85 | public ContactWrapper(String id, String userId, Contact c) { |
---|
| 86 | |
---|
| 87 | this.id = id; |
---|
| 88 | this.userId = userId; |
---|
| 89 | this.c = c; |
---|
| 90 | } |
---|
| 91 | } |
---|