package org.mxchange.jcore.model.contact;
import java.io.Serializable;
-import org.mxchange.jcore.client.Client;
+import java.sql.Timestamp;
+import java.util.Date;
import org.mxchange.jcore.model.contact.gender.Gender;
/**
* A general contact interface
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
public interface Contact extends Serializable {
- /**
- * Some "getter" for translated gender of the contact
- *
- * @return Translated / human-readable gender
- */
- public String getTranslatedGender ();
-
/**
* Id number
* @return the contactId
*/
- public Long getContactId ();
+ public Long getId ();
/**
* Id number
- * @param contactId the contactId to set
+ * @param id the contactId to set
*/
- public void setContactId (final Long contactId);
+ public void setId (final Long id);
/**
* Gender of the contact
public void setFamilyName (final String familyName);
/**
- * Companyname
+ * Company name
*
* @return the companyName
*/
public String getCompanyName ();
/**
- * Companyname
+ * Company name
*
* @param companyName the companyName to set
*/
*
* @return the birthday
*/
- public String getBirthday ();
+ public Date getBirthday ();
/**
* Birth day
*
* @param birthday the birthday to set
*/
- public void setBirthday (final String birthday);
+ public void setBirthday (final Date birthday);
/**
* Comments
*
* @return Own data?
*/
- public boolean isOwnContact ();
+ public Boolean isOwnContact ();
+
+ /**
+ * Setter for own contact
+ *
+ * @param ownContact Own contact
+ */
+ public void setOwnContact (final Boolean ownContact);
+
+ /**
+ * Getter for "created" timestamp
+ *
+ * @return "created" timestamp
+ */
+ public Timestamp getCreated ();
+
+ /**
+ * Setter for "created" timestamp
+ *
+ * @param created "created" timestamp
+ */
+ public void setCreated (final Timestamp created);
+
+ /**
+ * Getter for "updated" timestamp
+ *
+ * @return "updated" timestamp
+ */
+ public Timestamp getUpdated ();
/**
- * Shows the contact to the user
+ * Getter for "updated" timestamp
*
- * @param client Client instance to call back
+ * @param updated "updated" timestamp
*/
- public void show (final Client client);
+ public void setUpdated (final Timestamp updated);
}