mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 04:12:04 +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:
parent
fcc372754e
commit
d64ee785bd
1 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue