Example usage for Java twitter4j Query fields, constructors, methods, implement or subclass
The text is from its open source code.
String | lang |
int | count |
String | since |
String | until |
Unit | MILES |
Unit | KILOMETERS |
ResultType | MIXED mixed: Include both popular and real time results in the response. |
ResultType | POPULAR popular: return only the most popular results in the response. |
ResultType | RECENT recent: return only the most recent results in the response |
int | getCount() Returns the number of tweets to return per page, up to a max of 100 |
long | getMaxId() Returns tweets with status ids less than the given id. |
String | getQuery() Returns the specified query |
long | getSinceId() returns sinceId |
void | setCount(int count) sets the number of tweets to return per page, up to a max of 100 |
void | setGeoCode(GeoLocation location, double radius, Unit unit) returns tweets by users located within a given radius of the given latitude/longitude, where the user's location is taken from their Twitter profile |
void | setLang(String lang) restricts tweets to the given language, given by an ISO 639-1 code |
void | setLocale(String locale) Specify the language of the query you are sending (only ja is currently effective). |
void | setMaxId(long maxId) If specified, returns tweets with status ids less than the given id. |
void | setQuery(String query) Sets the query string |
void | setResultType(ResultType resultType) Default value is Query.MIXED if parameter not specified |
void | setSince(String since) If specified, returns tweets with since the given date. |
void | setSinceId(long sinceId) returns tweets with status ids greater than the given id. |
void | setUntil(String until) If specified, returns tweets with generated before the given date. |