1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Apply builder pattern to DiscoverInfo

This is the first transformation of an IQ type to the builder type.
This commit is contained in:
Florian Schmaus 2019-10-29 11:14:55 +01:00
parent 36072fb25a
commit 6e32305987
30 changed files with 749 additions and 233 deletions

View file

@ -16,9 +16,9 @@
*/
package org.jivesoftware.smackx.iot.control.element;
import org.jivesoftware.smack.packet.AbstractIqBuilder;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.IqBuilder;
import org.jivesoftware.smack.packet.StanzaBuilder;
public class IoTSetResponse extends IQ {
@ -35,7 +35,7 @@ public class IoTSetResponse extends IQ {
}
public IoTSetResponse(IoTSetRequest iotSetRequest) {
this(StanzaBuilder.buildIqResultFor(iotSetRequest));
this(AbstractIqBuilder.createResponse(iotSetRequest));
}
@Override