List of usage examples for twitter4j QueryResult getQuery
String getQuery();
From source file:uk.ac.essex.wonderland.modules.twitter.client.TwitterCell.java
License:Open Source License
private void updateQueryResult(QueryResult queryResult) { ui.setQueryString(queryResult.getQuery()); @SuppressWarnings("unchecked") List<Tweet> tweetList = queryResult.getTweets(); for (Tweet tweet : tweetList) { try {/* w w w. j a v a2s. c om*/ tweetQueue.put(tweet); } catch (InterruptedException ex) { Logger.getLogger(TwitterCell.class.getName()).log(Level.SEVERE, "Failed to put tweet", ex); } } }
From source file:uk.ac.essex.wonderland.modules.twitter.client.TwitterCell.java
License:Open Source License
String getQueryString() { QueryResult result = clientState.getQueryResult(); if (result != null) { return result.getQuery(); } else {/* ww w . j a v a 2 s.co m*/ return null; } }