2014-01-30 23:33:01 +00:00
|
|
|
package de.gultsch.chat.xmpp;
|
|
|
|
|
|
|
|
import de.gultsch.chat.xml.Element;
|
|
|
|
|
|
|
|
public class MessagePacket extends Element {
|
|
|
|
private MessagePacket(String name) {
|
|
|
|
super(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
public MessagePacket() {
|
|
|
|
super("message");
|
|
|
|
}
|
2014-02-01 14:07:20 +00:00
|
|
|
|
|
|
|
public String getFrom() {
|
|
|
|
return getAttribute("from");
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getBody() {
|
|
|
|
return this.findChild("body").getContent();
|
|
|
|
}
|
2014-01-30 23:33:01 +00:00
|
|
|
}
|