[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
1 changed files with 20 additions and 0 deletions

View File

@ -60,6 +60,26 @@ public class BoBDataExtension implements ExtensionElement {
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
public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
XmlStringBuilder xml = new XmlStringBuilder(this);