
org.labkey.remoteapi.assay.LoadAssayBatchResponse Maven / Gradle / Ivy
package org.labkey.remoteapi.assay;
import org.json.simple.JSONObject;
import org.labkey.remoteapi.Command;
import org.labkey.remoteapi.CommandResponse;
public class LoadAssayBatchResponse extends CommandResponse
{
private Batch _batch;
/**
* Constructs a new CommandResponse, initialized with the provided
* response text and status code.
*
* @param text The response text
* @param statusCode The HTTP status code
* @param contentType The response content type
* @param json The parsed JSONObject (or null if JSON was not returned).
* @param sourceCommand A copy of the command that created this response
*/
public LoadAssayBatchResponse(String text, int statusCode, String contentType, JSONObject json, Command sourceCommand)
{
super(text, statusCode, contentType, json, sourceCommand);
_batch = new Batch((JSONObject) json.get("batch"));
}
public Batch getBatch()
{
return _batch;
}
public void setBatch(Batch batch)
{
_batch = batch;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy