mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02: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
|
@ -15,7 +15,11 @@ Smack Key Advantages
|
|||
AbstractXMPPConnection connection = new XMPPTCPConnection("mtucker", "password", "jabber.org");
|
||||
connection.connect().login();
|
||||
|
||||
Message message = new Message("jsmith@jivesoftware.com", "Howdy! How are you?");
|
||||
Message message = connection.getStanzaFactory()
|
||||
.buildMessageStanza()
|
||||
.to("jsmith@jivesoftware.com")
|
||||
.setBody("Howdy! How are you?")
|
||||
.build();
|
||||
connection.sendStanza(message);
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue