Skip to content

Commit

Permalink
Add Message(String,String)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Dec 1, 2014
1 parent 15d60ea commit ba2df2a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ public Message(String to, Type type) {
setType(type);
}

/**
* Creates a new message to the specified recipient and with the specified body.
*
* @param to the user to send the message to.
* @param body the body of the message.
*/
public Message(String to, String body) {
this(to);
setBody(body);
}

/**
* Returns the type of the message. If no type has been set this method will return {@link
* org.jivesoftware.smack.packet.Message.Type#normal}.
Expand Down

0 comments on commit ba2df2a

Please sign in to comment.