
org.labkey.remoteapi.assay.SaveProtocolCommand Maven / Gradle / Ivy
package org.labkey.remoteapi.assay;
import org.json.simple.JSONObject;
import org.labkey.remoteapi.PostCommand;
public class SaveProtocolCommand extends PostCommand
{
private Protocol _protocol;
public SaveProtocolCommand(Protocol protocol)
{
super("assay", "saveProtocol");
_protocol = protocol;
}
@Override
protected ProtocolResponse createResponse(String text, int status, String contentType, JSONObject json)
{
return new ProtocolResponse(text, status, contentType, json, null);
}
@Override
public JSONObject getJsonObject()
{
return _protocol.toJSONObject();
}
@Override
public double getRequiredVersion()
{
return -1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy