mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Merge branch '4.4'
This commit is contained in:
commit
a15110694a
3 changed files with 154 additions and 71 deletions
|
@ -34,6 +34,7 @@ public class JingleReason implements XmlElement {
|
|||
|
||||
public static final String ELEMENT = "reason";
|
||||
public static final String NAMESPACE = Jingle.NAMESPACE;
|
||||
public static final String TEXT_ELEMENT = "text";
|
||||
|
||||
public static AlternativeSession AlternativeSession(String sessionId) {
|
||||
return new AlternativeSession(sessionId);
|
||||
|
@ -141,7 +142,7 @@ public class JingleReason implements XmlElement {
|
|||
/**
|
||||
* An optional element that provides more detailed machine-readable information about the reason for the action.
|
||||
*
|
||||
* @return an elemnet with machine-readable information about this reason or <code>null</code>.
|
||||
* @return an element with machine-readable information about this reason or <code>null</code>.
|
||||
* @since 4.4.5
|
||||
*/
|
||||
public XmlElement getElement() {
|
||||
|
@ -154,6 +155,8 @@ public class JingleReason implements XmlElement {
|
|||
xml.rightAngleBracket();
|
||||
|
||||
xml.emptyElement(reason);
|
||||
xml.optElement(TEXT_ELEMENT, text);
|
||||
xml.optAppend(element);
|
||||
|
||||
xml.closeElement(this);
|
||||
return xml;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue