org.dsa.iot.dslink.methods.requests.RemoveRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dslink Show documentation
Show all versions of dslink Show documentation
SDK for the IoT DSA protocol
package org.dsa.iot.dslink.methods.requests;
import org.dsa.iot.dslink.methods.Request;
import org.dsa.iot.dslink.util.json.JsonObject;
/**
* Request used to remove attributes or configurations.
*
* @author Samuel Grenier
*/
public class RemoveRequest extends Request {
private final String path;
public RemoveRequest(String path) {
if (path == null) {
throw new NullPointerException("path");
}
this.path = path;
}
@Override
public String getName() {
return "remove";
}
public String getPath() {
return path;
}
@Override
public void addJsonValues(JsonObject out) {
out.put("path", path);
}
}