anl.aida.reader
Class NYTSearchResult

java.lang.Object
  extended by anl.aida.reader.NYTSearchResult

public class NYTSearchResult
extends java.lang.Object

An search result as represented by the JSON returned from the NYT article search API.This class is automatically instantiated and filled using Gson -- the JSON to java converter. It will contain the current offset, the list of article entries for that offset and the total number of articles over all the offsets.

Author:
Nick Collier

Field Summary
private  java.lang.String offset
           
private  NYTEntry[] results
           
private  int total
           
 
Constructor Summary
NYTSearchResult()
           
 
Method Summary
 java.lang.String getOffset()
           
 NYTEntry[] getResults()
           
 int getTotal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

private java.lang.String offset

results

private NYTEntry[] results

total

private int total
Constructor Detail

NYTSearchResult

public NYTSearchResult()
Method Detail

getOffset

public java.lang.String getOffset()
Returns:
the offset

getResults

public NYTEntry[] getResults()
Returns:
the results

getTotal

public int getTotal()
Returns:
the total