mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 05:51:08 +01:00
Introduce StanzaBuilder
As first step to immutable Stanza types.
This commit is contained in:
parent
926c5892ad
commit
5db6191110
134 changed files with 2576 additions and 764 deletions
|
|
@ -40,9 +40,12 @@ public final class Chat extends Manager {
|
|||
}
|
||||
|
||||
public void send(CharSequence message) throws NotConnectedException, InterruptedException {
|
||||
Message stanza = new Message();
|
||||
stanza.setBody(message);
|
||||
stanza.setType(Message.Type.chat);
|
||||
Message stanza = connection()
|
||||
.getStanzaFactory()
|
||||
.buildMessageStanza()
|
||||
.ofType(Message.Type.chat)
|
||||
.setBody(message)
|
||||
.build();
|
||||
send(stanza);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue