public class PhoneMessage
extends java.lang.Object
Constructor and Description |
---|
PhoneMessage()
Creates a new PhoneMessage.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDateTime()
Returns the date/time of the message.
|
java.lang.String |
getID()
Returns the ID of the message.
|
java.lang.String |
getMessage()
Returns the body of the message.
|
java.lang.String |
getMessageString()
Gets the message string for this message.
|
java.lang.String |
getRecipientNum()
Returns the phone number of the recipient of the message.
|
java.lang.String |
getStatus()
Returns the status of the message.
|
static PhoneMessage |
parseReponse(java.lang.String response)
Parses the given phone response and creates a PhoneMessage that matches it.
|
void |
setDateTime(java.lang.String newDateTime)
Sets the date/time of the message.
|
void |
setID(java.lang.String newID)
Sets the ID of the message.
|
void |
setMessage(java.lang.String newMsg)
Sets the body of the message.
|
void |
setRecipientNum(java.lang.String newRecip)
Sets the phone number of the recipient of the message.
|
void |
setStatus(java.lang.String newStatus)
Sets the status of the message.
|
java.lang.String |
toString()
Returns a String representation of this PhoneMessage.
|
public java.lang.String getMessage()
public java.lang.String getRecipientNum()
public java.lang.String getID()
public java.lang.String getDateTime()
public java.lang.String getStatus()
public void setMessage(java.lang.String newMsg)
newMsg
- the new body of the message.public void setRecipientNum(java.lang.String newRecip)
newRecip
- the new recipient's phone number.public void setID(java.lang.String newID)
newID
- the new ID of the message.public void setDateTime(java.lang.String newDateTime)
newDateTime
- the new date/time of the message.public void setStatus(java.lang.String newStatus)
newStatus
- the new status of the message.public java.lang.String getMessageString()
public static PhoneMessage parseReponse(java.lang.String response)
response
- The response to parse.public java.lang.String toString()
toString
in class java.lang.Object