TWTRUserTimelineDataSource Class Reference
| Inherits from | NSObject |
| Conforms to | TWTRTimelineDataSource |
| Declared in | TWTRUserTimelineDataSource.h |
Overview
This Timeline Data Source provides a list of Tweets roughly consistent with the list on a Users profile page. The difference is that this data source will filter out Tweets that are direct replies to other users by default.
These Tweets are ordered chronologically with the most recent first.
Tasks
-
screenNameproperty -
userIDproperty -
maxTweetsPerRequestproperty -
includeRepliesproperty -
includeRetweetsproperty -
– initWithScreenName:APIClient: -
– initWithScreenName:userID:APIClient:maxTweetsPerRequest:includeReplies:includeRetweets: -
– init
Properties
includeReplies
Whether to request replies in the set of Tweets from the server.
@property (nonatomic, readonly) BOOL includeRepliesDiscussion
Defaults to NO.
Declared In
TWTRUserTimelineDataSource.hincludeRetweets
Whether to request retweets in the set of Tweets from the server.
@property (nonatomic, readonly) BOOL includeRetweetsDiscussion
Defaults to YES.
Declared In
TWTRUserTimelineDataSource.hmaxTweetsPerRequest
The number of Tweets to request in each query to the Twitter Timeline API when fetching the next batch of Tweets. Will request 30 Tweets by default. Setting this value to 0 will use the server default.
@property (nonatomic, readonly) NSUInteger maxTweetsPerRequestDeclared In
TWTRUserTimelineDataSource.hscreenName
The screen name of the User whose Tweets are being shown. Either the screenName or the userID are required.
@property (nonatomic, copy, readonly) NSString *screenNameDeclared In
TWTRUserTimelineDataSource.huserID
The userID of the User whose Tweets are being shown. Either the screenName or the userID are required.
@property (nonatomic, copy, readonly) NSString *userIDDeclared In
TWTRUserTimelineDataSource.hInstance Methods
initWithScreenName:APIClient:
Convenience initializer. Uses default values for maxTweetsPerRequest, includeReplies and includeRetweets.
- (instancetype)initWithScreenName:(NSString *)screenName APIClient:(TWTRAPIClient *)clientParameters
- screenName
The screen name of a Twitter User
- client
The API client to use for making network requests.
Return Value
A fully initialized user timeline datasource or nil.
Declared In
TWTRUserTimelineDataSource.hinitWithScreenName:userID:APIClient:maxTweetsPerRequest:includeReplies:includeRetweets:
The designated initialzer accepted values for properties.
- (instancetype)initWithScreenName:(nullable NSString *)screenName userID:(nullable NSString *)userID APIClient:(TWTRAPIClient *)client maxTweetsPerRequest:(NSUInteger)maxTweetsPerRequest includeReplies:(BOOL)includeReplies includeRetweets:(BOOL)includeRetweetsParameters
- screenName
The screen name of the Twitter User
- userID
The user ID of the Twitter User
- maxTweetsPerRequest
The number of Tweets per batch to request. A value of 0 will use the server default.
- includeReplies
Whether replies should be requested
- includeRetweets
Whether retweets should be requested
- APIClient
The API client to use for making network requests.
Return Value
A fully initialized user timeline datasource or nil.
Declared In
TWTRUserTimelineDataSource.h