mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 14:01: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
|
|
@ -80,8 +80,10 @@ public final class GeoLocationManager extends Manager {
|
|||
|
||||
final XMPPConnection connection = connection();
|
||||
|
||||
Message geoLocationMessage = new Message(jid);
|
||||
geoLocationMessage.addExtension(geoLocation);
|
||||
Message geoLocationMessage = connection.getStanzaFactory().buildMessageStanza()
|
||||
.to(jid)
|
||||
.addExtension(geoLocation)
|
||||
.build();
|
||||
|
||||
connection.sendStanza(geoLocationMessage);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue