/** * Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user. * <br>This method calls http://twitter.com/statuses/friends_timeline * * @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID * @param page the number of page * @return list of the Friends Timeline * @throws TwitterException when Twitter service or network is unavailable * @since Twitter4J 1.1.8 * @deprecated Use getFriendsTimeline(Paging paging) instead * @see <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-friends_timeline">Twitter API Wiki / Twitter REST API Method: statuses friends_timeline</a> */ public List<Status> getFriendsTimeline(long sinceId, int page) throws TwitterException { return getFriendsTimeline(new Paging(page).sinceId(sinceId)); }
/** * Returns a list of the direct messages sent to the authenticating user. * <br>This method calls http://twitter.com/direct_messages * * @param page the number of page * @param sinceId Returns only direct messages with an ID greater than (that is, more recent than) the specified ID. * @return List * @throws TwitterException when Twitter service or network is unavailable * @since Twitter4J 2.0.0 * @deprecated Use getDirectMessages(Paging paging) instead * @see <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-direct_messages">Twitter API Wiki / Twitter REST API Method: direct_messages</a> */ public List<DirectMessage> getDirectMessages(int page , int sinceId) throws TwitterException { return getDirectMessages(new Paging(page).sinceId(sinceId)); }