Example usage for twitter4j Paging setCount

List of usage examples for twitter4j Paging setCount

Introduction

In this page you can find the example usage for twitter4j Paging setCount.

Prototype

public void setCount(int count) 

Source Link

Usage

From source file:tientx.supercode.myproejectdemov3.service.TwitterServiceImpl.java

@Override
public ResponseList<Status> getTwUserHomeTimeline(Long idUser, Integer count)
        throws TwitterException, InterruptedException {
    Paging pg = new Paging();
    pg.setCount(count);
    overError88(TwitterConfig.USER_HOME_TIMELINE);
    return twitter.getUserTimeline(idUser, pg);
}

From source file:tientx.supercode.myproejectdemov3.service.TwitterServiceImpl.java

@Override
public ResponseList<Status> getTwFavorites(String screenName, Integer count)
        throws TwitterException, InterruptedException {
    Paging pg = new Paging();
    pg.setCount(count);
    overError88(TwitterConfig.USER_FAVORITES_LIST);
    return twitter.getFavorites(screenName, pg);
}

From source file:tientx.supercode.myproejectdemov3.service.TwitterServiceImpl.java

@Override
public ResponseList<Status> getTwFavorites(Long idUser, Integer count)
        throws TwitterException, InterruptedException {
    Paging pg = new Paging();
    pg.setCount(count);
    overError88(TwitterConfig.USER_FAVORITES_LIST);
    return twitter.getFavorites(idUser, pg);
}