public static class UserTimeline.Builder
extends Object
| Constructor and Description |
|---|
Builder()
Constructs a Builder.
|
| Modifier and Type | Method and Description |
|---|---|
UserTimeline |
build()
Builds a UserTimeline from the Builder parameters.
|
UserTimeline.Builder |
includeReplies(Boolean includeReplies)
Sets whether to includeReplies for the UserTimeline.
|
UserTimeline.Builder |
includeRetweets(Boolean includeRetweets)
Sets whether to includeRetweets for the UserTimeline.
|
UserTimeline.Builder |
maxItemsPerRequest(Integer maxItemsPerRequest)
Sets the number of Tweets returned per request for the UserTimeline.
|
UserTimeline.Builder |
screenName(String screenName)
Sets the screenName for the UserTimeline.
|
UserTimeline.Builder |
userId(Long userId)
Sets the userId for the UserTimeline.
|
public UserTimeline.Builder userId(Long userId)
userId - The ID of the user for whom to return results for.public UserTimeline.Builder screenName(String screenName)
screenName - The screen name of the user for whom to return results for.public UserTimeline.Builder maxItemsPerRequest(Integer maxItemsPerRequest)
maxItemsPerRequest - The number of tweets to return per request, up to a maximum of
200.public UserTimeline.Builder includeReplies(Boolean includeReplies)
includeReplies - true to allow replies to be included in the returned timeline
result.public UserTimeline.Builder includeRetweets(Boolean includeRetweets)
includeRetweets - When set to false, the timeline will strip any native retweets
(though they will still count toward both the maximal length of the timeline and the
slice selected by the count parameter).public UserTimeline build()