aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/xmpp/MessagePacket.java
blob: 313fb355b39670acedd4bc709f0d5f5c6e6412a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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");
	}

	public String getFrom() {
		return getAttribute("from");
	}
	
	public String getBody() {
		return this.findChild("body").getContent();
	}
}