All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.labkey.remoteapi.query.ImportDataResponse Maven / Gradle / Ivy

Go to download

The client-side library for Java developers is a separate JAR from the LabKey Server code base. It can be used by any Java program, including another Java web application.

There is a newer version: 19.3.7
Show newest version
package org.labkey.remoteapi.query;

import org.json.simple.JSONObject;
import org.labkey.remoteapi.Command;
import org.labkey.remoteapi.CommandResponse;

/**
 * User: kevink
 * Date: 2/3/17
 */
public class ImportDataResponse extends CommandResponse
{
    private final Boolean _success;
    private final int _rowCount;

    public ImportDataResponse(String text, int statusCode, String contentType, JSONObject json, Command sourceCommand)
    {
        super(text, statusCode, contentType, json, sourceCommand);
        _success = json.containsKey("success") ? (Boolean)json.get("success") : Boolean.FALSE;
        _rowCount = json.containsKey("rowCount") ? ((Number)json.get("rowCount")).intValue() : 0;
    }

    public Boolean getSuccess()
    {
        return _success;
    }

    public int getRowCount()
    {
        return _rowCount;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy