Fix IotIsFriendResponse element name and XML

Fixes SMACK-756
This commit is contained in:
Florian Schmaus 2017-04-19 23:08:35 +02:00
parent 724421e1ae
commit 162dee0a47
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}