1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

[extensions] Add BoBDataExtension getBobData() and getContentId()

Those two methods where missing after the BoB API redesign.

Fixes SMACK-896.
This commit is contained in:
Florian Schmaus 2021-01-06 13:47:09 +01:00
parent fcc372754e
commit d64ee785bd

View file

@ -60,6 +60,26 @@ public class BoBDataExtension implements ExtensionElement {
return NAMESPACE; return NAMESPACE;
} }
/**
* Get the content ID.
*
* @return the content ID.
* @since 4.4.1
*/
public final ContentId getContentId() {
return cid;
}
/**
* Get the Bits of Binary (BOB) data.
*
* @return the BoB data.
* @since 4.4.1
*/
public final BoBData getBobData() {
return bobData;
}
@Override @Override
public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) { public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
XmlStringBuilder xml = new XmlStringBuilder(this); XmlStringBuilder xml = new XmlStringBuilder(this);