com.techventus.server.voice.datatypes
Class Contact

java.lang.Object
  extended by com.techventus.server.voice.datatypes.Contact
All Implemented Interfaces:
java.lang.Comparable<Contact>

public class Contact
extends java.lang.Object
implements java.lang.Comparable<Contact>

A Contact TODO I think we need to add several subclasses for the different contact infos like phone numbers, Email addresses and such

Author:
Tobias Eisentraeger

Constructor Summary
Contact(java.lang.String name, java.lang.String id, java.lang.String number, java.lang.String imageUrl)
           
 
Method Summary
 int compareTo(Contact o)
           
static Contact extractContact(java.lang.String html)
          Deprecated. 
 java.lang.String getId()
           
 java.lang.String getImageUrl()
          Gets the Url of the Contacts image on the web
 java.lang.String getName()
           
 java.lang.String getNumber()
          Gets the phone number
 void setId(java.lang.String id)
           
 void setImageUrl(java.lang.String imageUrl)
          Sets the Url of the Contacts image on the web
 void setName(java.lang.String name)
          Gets the Display name of the contact
 void setNumber(java.lang.String number)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contact

public Contact(java.lang.String name,
               java.lang.String id,
               java.lang.String number,
               java.lang.String imageUrl)
Method Detail

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Gets the Display name of the contact

Parameters:
name - the name to set

getNumber

public java.lang.String getNumber()
Gets the phone number

Returns:
the number

setNumber

public void setNumber(java.lang.String number)
Parameters:
number - the number to set

getImageUrl

public java.lang.String getImageUrl()
Gets the Url of the Contacts image on the web

Returns:
the imageUrl

setImageUrl

public void setImageUrl(java.lang.String imageUrl)
Sets the Url of the Contacts image on the web

Parameters:
imageUrl - the imageUrl to set

getId

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

setId

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

extractContact

@Deprecated
public static Contact extractContact(java.lang.String html)
Deprecated. 

Deprecated Method. Creates a Contact out of a html TODO DummyData - Implement.

Parameters:
html - the html
Returns:
the contact

compareTo

public int compareTo(Contact o)
Specified by:
compareTo in interface java.lang.Comparable<Contact>