Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
Represents the response from running a Clear request against Factual.

Author(s):
brandon
public class ClearResponse extends Response {
  private String factualId;
  private String commitId;
  private InternalResponse resp = null;

  
Constructor, parses from a JSON response String.
  public ClearResponse(InternalResponse resp) {
    this. = resp;
    try {
      JSONObject rootJsonObj = new JSONObject(resp.getContent());
      Response.withMeta(thisrootJsonObj);
      parseResponse(rootJsonObj.getJSONObject(.));
    } catch (JSONException e) {
      throw new RuntimeException(e);
    }
  }
  private void parseResponse(JSONObject jothrows JSONException {
  }

  

Returns:
the factual id that submit was performed on
  public String getFactualId() {
    return ;
  }

  

Returns:
the commit id associated with this clear
  public String getCommitId() {
    return ;
  }
  public String getJson() {
    return .getContent();
  }
New to GrepCode? Check out our FAQ X