com.techventus.server.voice.util
Class SMSParser

java.lang.Object
  extended by com.techventus.server.voice.util.SMSParser

public class SMSParser
extends java.lang.Object

This class parses the SMS messages from the Google Voice XML response.

Author:
Tiago Proenca (tproenca)

Constructor Summary
SMSParser(java.lang.String response, Contact me)
          Creates a SMSParser instance.
SMSParser(java.lang.String response, java.lang.String myPhoneNumber)
          Creates a SMSParser instance.
 
Method Summary
 java.util.Collection<SMSThread> getSMSThreads()
          Returns the SMS threads.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMSParser

public SMSParser(java.lang.String response,
                 Contact me)
Creates a SMSParser instance.

Parameters:
response - the server's HTML response.
me - my Contact information.

SMSParser

public SMSParser(java.lang.String response,
                 java.lang.String myPhoneNumber)
Creates a SMSParser instance.

Parameters:
response - the server's HTML response.
myPhoneNumber - my Google Voice phone number.
Method Detail

getSMSThreads

public java.util.Collection<SMSThread> getSMSThreads()
Returns the SMS threads.

Returns:
the SMS threads.