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, SMSThread, 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?

Author:
Tobias Eisentraeger

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()
           
 boolean getRead()
          Gets a boolean for whether or not the conversation has been read.
 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)
          Sets the id.
 void setTitle(java.lang.String pTitle)
           
abstract  java.lang.String toString()
          Returns a String representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)
Sets the id.

Parameters:
id - the id to set

getRead

public boolean getRead()
Gets a boolean for whether or not the conversation has been read.

Returns:
the read

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()