public final class SoftwareVersionManager extends Manager
This manager implements XEP-0092: Software Version.
If enabled and a software version has been set, it automatically responds to inbound queries for the software version.
It also allows to query for the software version of another entity.Modifier and Type | Method and Description |
---|---|
SoftwareVersion |
getSoftwareVersion()
Gets my own software version, which should be set first.
|
AsyncResult<SoftwareVersion> |
getSoftwareVersion(Jid jid)
Gets the software version of another entity.
|
void |
setSoftwareVersion(SoftwareVersion softwareVersion)
Sets my own software version.
|
isEnabled, setEnabled
public AsyncResult<SoftwareVersion> getSoftwareVersion(Jid jid)
Gets the software version of another entity.
jid
- The JID of the entity you want get the software version from. You can also pass null, if you want to get the server’s software version.public SoftwareVersion getSoftwareVersion()
Gets my own software version, which should be set first.
setSoftwareVersion(SoftwareVersion)
public void setSoftwareVersion(SoftwareVersion softwareVersion)
Sets my own software version.
softwareVersion
- My software version.getSoftwareVersion()
Copyright © 2014–2019 XMPP.rocks. All rights reserved.