/** * Copyright 1999-2009 The Pegadi Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.pegadi.sources; import java.util.Date; /** * This class represents a contact that has been made with a source. */ public class Contact implements java.io.Serializable { private int ID; private int sourceID; private int userID; private Date date; private String notes; /** * Constructor that sets the ID to -1 and the date of contact to today. */ public Contact() { this.ID=-1; this.date = new Date(); } public Contact(int sourceID) { this(); this.sourceID=sourceID; } public void setID(int ID) { this.ID=ID; } public int getID() { return ID; } public int getSourceID() { return sourceID; } public void setSourceID(int sourceID) { this.sourceID=sourceID; } public int getUserID() { return userID; } public void setUserID(int userID) { this.userID=userID; } public Date getDate() { return date; } public void setDate(Date date) { this.date=date; } public String getNotes() { return notes; } public void setNotes(String notes) { this.notes=notes; } }