net.unto.twitter.methods
Class SearchRequest.Builder

java.lang.Object
  extended by net.unto.twitter.methods.AbstractRequest.Builder<SearchRequest.Builder>
      extended by net.unto.twitter.methods.SearchRequest.Builder
All Implemented Interfaces:
Request.Builder
Enclosing class:
SearchRequest

public static final class SearchRequest.Builder
extends AbstractRequest.Builder<SearchRequest.Builder>


Method Summary
 SearchRequest build()
           
 SearchRequest.Builder fromScreenName(String screenName)
          Returns tweets send by the given screen name.
 SearchRequest.Builder geocode(TwitterProtos.Geocode geocode)
           
 SearchRequest.Builder lang(String lang)
          Restricts tweets to the given language, given by an ISO 639-1 code.
 SearchRequest.Builder maxId(long maxId)
          Returns tweets up to and including maxId.
 SearchRequest.Builder page(int page)
          The page number (starting at 1) to return, up to a max of roughly 1500 results
 SearchRequest.Builder resultsPerPage(int resultsPerPage)
          The number of tweets to return per page, up to a max of 100
 SearchRequest.Builder showUser(boolean showUser)
          When "true", adds ":" to the beginning of the tweet.
 SearchRequest.Builder sinceId(long sinceId)
          Returns tweets with status ids greater than the given id.
 SearchRequest.Builder toScreenName(String screenName)
          Returns tweets send to the given screen name.
 
Methods inherited from class net.unto.twitter.methods.AbstractRequest.Builder
host, httpManager, port, scheme
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

lang

public SearchRequest.Builder lang(String lang)
Restricts tweets to the given language, given by an ISO 639-1 code.

Parameters:
lang - Restricts tweets to the given language, given by an ISO 639-1 code
Returns:
Builder

resultsPerPage

public SearchRequest.Builder resultsPerPage(int resultsPerPage)
The number of tweets to return per page, up to a max of 100

Parameters:
resultsPerPage - the number of tweets to return per page, up to a max of 100
Returns:
Builder

page

public SearchRequest.Builder page(int page)
The page number (starting at 1) to return, up to a max of roughly 1500 results

Parameters:
page - The page number (starting at 1) to return, up to a max of roughly 1500 results
Returns:
Builder

geocode

public SearchRequest.Builder geocode(TwitterProtos.Geocode geocode)

showUser

public SearchRequest.Builder showUser(boolean showUser)
When "true", adds ":" to the beginning of the tweet.

Parameters:
showUser - when "true", adds ":" to the beginning of the tweet.
Returns:
Builder

sinceId

public SearchRequest.Builder sinceId(long sinceId)
Returns tweets with status ids greater than the given id.

Parameters:
sinceId - Returns tweets with status ids greater than the given id.
Returns:
Builder

fromScreenName

public SearchRequest.Builder fromScreenName(String screenName)
Returns tweets send by the given screen name.

Parameters:
screenName - Returns tweets send by the given screen name.
Returns:
Builder

toScreenName

public SearchRequest.Builder toScreenName(String screenName)
Returns tweets send to the given screen name.

Parameters:
screenName - Returns tweets send to the given screen name.
Returns:
Builder

maxId

public SearchRequest.Builder maxId(long maxId)
Returns tweets up to and including maxId.

Parameters:
maxId - Returns tweets up to and including maxId
Returns:
Builder

build

public SearchRequest build()


Copyright © 2009 DeWitt Clinton. All Rights Reserved.