com.techventus.server.voice.datatypes.records
Class Record

java.lang.Object
  extended by com.techventus.server.voice.datatypes.records.Record
Direct Known Subclasses:
Call, ShortMessage, Voicemail

public abstract class Record
extends java.lang.Object

A Record is one entry in a Voice record list(like the Inbox) An implemented Class is a call entry or an SMS or a Voicemail TODO give better name?


Field Summary
protected  Contact contact
          The Contact of this Record, like who called in
protected  java.util.Date date
          The date of the record
protected  java.lang.String id
          The id of the record
protected  boolean read
          true if the message is read, false if not
protected  java.lang.String title
          The title of the record
 
Constructor Summary
Record(java.lang.String id, java.lang.String title, java.util.Date date, Contact contact, boolean read)
           
 
Method Summary
 Contact getContact()
           
 java.util.Date getDate()
           
 java.lang.String getId()
           
 java.lang.String getTitle()
           
 boolean isCall()
           
 boolean isShortMessage()
           
 boolean isVoicemail()
           
 void setContact(Contact pContact)
           
 void setDate(java.util.Date pDate)
           
 void setId(java.lang.String id)
           
 void setTitle(java.lang.String pTitle)
           
abstract  java.lang.String toString()
          Returns a String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected java.lang.String id
The id of the record


title

protected java.lang.String title
The title of the record


date

protected java.util.Date date
The date of the record


contact

protected Contact contact
The Contact of this Record, like who called in


read

protected boolean read
true if the message is read, false if not

Constructor Detail

Record

public Record(java.lang.String id,
              java.lang.String title,
              java.util.Date date,
              Contact contact,
              boolean read)
Method Detail

getId

public java.lang.String getId()
Returns:
the id

setId

public void setId(java.lang.String id)
Parameters:
id - the id to set

getTitle

public java.lang.String getTitle()
Returns:
the title

setTitle

public void setTitle(java.lang.String pTitle)
Parameters:
title - the title to set

getDate

public java.util.Date getDate()
Returns:
the date

setDate

public void setDate(java.util.Date pDate)
Parameters:
date - the date to set

getContact

public Contact getContact()
Returns:
the contact

setContact

public void setContact(Contact pContact)
Parameters:
contact - the contact to set

toString

public abstract java.lang.String toString()
Returns a String representation

Overrides:
toString in class java.lang.Object

isVoicemail

public boolean isVoicemail()

isCall

public boolean isCall()

isShortMessage

public boolean isShortMessage()