Package weibo4j.model

Examples of weibo4j.model.Paging


    Weibo weibo = new Weibo();
    weibo.setToken(at.getAccessToken());
    Timeline tm = new Timeline();
    try {
      Paging paging = new Paging();
      if (page.getCount() >= 0) {
        paging.setCount(page.getCount());
      }
      if (page.getMaxId() >= 0) {
        paging.setMaxId(page.getMaxId());
      }
      if (page.getPage() >= 0) {
        paging.setPage(page.getPage());
      }
      if (page.getSinceId() >= 0) {
        paging.setSinceId(page.getSinceId());
      }

      logger.info("paging:" + paging);
      StatusWapper status = tm.getHomeTimeline(0,
          BlogFeature.getIntValue(feature), paging);
View Full Code Here


        list.add(array.get(i).toString());
      }

      System.out.println(list.size());

      StatusWapper wrapper = tm.getUserTimelineByUid("1450317544", new Paging(1), 0, 0);
      System.out.println(wrapper.getStatuses().size());

      wrapper = tm.getUserTimelineByUid("1450317544", new Paging(2), 0, 0);
      System.out.println(wrapper.getStatuses().size());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

        list.add(array.get(i).toString());
      }

      System.out.println(list.size());

      StatusWapper wrapper = tm.getUserTimelineByUid("1450317544", new Paging(1), 0, 0);
      System.out.println(wrapper.getStatuses().size());

      wrapper = tm.getUserTimelineByUid("1450317544", new Paging(2), 0, 0);
      System.out.println(wrapper.getStatuses().size());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of weibo4j.model.Paging

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.