com.factual.driver.RowResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of factual-java-driver Show documentation
Show all versions of factual-java-driver Show documentation
Factual's officially supported Java driver
The newest version!
package com.factual.driver;
import java.util.Map;
/**
* Represents the response from running a fetch row request against Factual.
*
* @author brandon
*/
public class RowResponse extends ReadResponse {
/**
* Constructor, parses from a JSON response String.
*/
public RowResponse(InternalResponse resp) {
super(resp);
}
public boolean isDeprecated() {
return resp.getStatusCode() == 301;
}
public Map getRowData() {
return first();
}
}