MessageJavadoc

package facePlace;

/** public class Message{ private User recipient; private String body; private User sender; private Date date;
 * Represents a message that contains the recipient, body, sender, and date.
 * author Amanda

Message(User recipient,String body){

}

/** public String getRecipient{ return recipient.getName; }
 * Returns the String value of the name associated with the recipient of the message.
 * @return the name of the recipient

/** public String getBody{ return body; }
 * Returns the String value of the body associated with the message.
 * @return the body of the message

/** public String getSender{ return sender.getName; }
 * Returns the String value of the name of the sender associated with the message.
 * @return the name of the sender

/** public Date getDate{ return Date; }
 * Returns the Date of the associated message, when it was sent.
 * @return the date of the message

/** public void setRecipient(String name){ this.recipient=name; }
 * Sets the input String to the recipient variable of the associated message.
 * @param name the string containing the name of the user that is to be set as the new recipient of the message.

/** public void setBody(String body){ this.body=body; }
 * Sets the input string to the body variable of the associated message.
 * @param body the string containing the body of the message that is to be set as the new body

/** public void setDate(Date date){ this.date=date; }
 * Sets the input date to the date variable of the associated message.
 * @param date the date containing the date of the message that is to be set as the new date