mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-21 18:17:58 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
|
Loading…
Reference in a new issue