anl.aida.reader
Class NYTSearchResult
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offset
private java.lang.String offset
results
private NYTEntry[] results
total
private int total
NYTSearchResult
public NYTSearchResult()
getOffset
public java.lang.String getOffset()
- Returns:
- the offset
getResults
public NYTEntry[] getResults()
- Returns:
- the results
getTotal
public int getTotal()
- Returns:
- the total