mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Fix IotIsFriendResponse element name and XML
Fixes SMACK-756
This commit is contained in:
parent
724421e1ae
commit
162dee0a47
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2016 Florian Schmaus
|
||||
* Copyright © 2016-2017 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -21,7 +21,7 @@ import org.jxmpp.jid.BareJid;
|
|||
|
||||
public class IoTIsFriendResponse extends IQ {
|
||||
|
||||
public static final String ELEMENT = "isFriend";
|
||||
public static final String ELEMENT = "isFriendResponse";
|
||||
public static final String NAMESPACE = Constants.IOT_PROVISIONING_NAMESPACE;
|
||||
|
||||
private final BareJid jid;
|
||||
|
@ -46,6 +46,7 @@ public class IoTIsFriendResponse extends IQ {
|
|||
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder xml) {
|
||||
xml.attribute("jid", jid);
|
||||
xml.attribute("result", result);
|
||||
xml.setEmptyElement();
|
||||
return xml;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue