public class Message extends Object
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
a getter that allows us to get the address or phone number from which a Contact sends us a
message.
|
String |
getBody()
A getter that allows to get access to the actual text inside an SMS message.
|
Contact |
getContact()
A getter that allows us to get a Contact object back
|
Date |
getSent()
Gets us the date stamp of when a message was received by the user.
|
void |
setAddress(String address)
a setter that allows us to set the phone number for which we send a message to.
|
void |
setBody(String body)
Allows us to set the body of an SMS message.
|
void |
setContact(Contact contact)
A setter that allows us to set the Contact object associated with a given message
|
void |
setSent(Date sent)
Sets the timestamp for a message.
|
public String getBody()
public void setBody(String body)
body
- , this is a String parameter that represents the body of a message.public Date getSent()
public void setSent(Date sent)
sent
- , this is a Date timestamp parameter that represents the time a message is
recieved.public Contact getContact()
public void setContact(Contact contact)
contact,
- a Contact objectpublic String getAddress()
public void setAddress(String address)
address,
- A string param, that represents a phone number.