Examples of DoubanNoteFeedObj


Examples of com.dongxuexidu.douban4j.model.note.DoubanNoteFeedObj

      params.add(new BasicNameValuePair("start-index", "" + startIndex));
    }
    if (maxResult != null) {
      params.add(new BasicNameValuePair("max-results", "" + maxResult));
    }
    DoubanNoteFeedObj result = this.client.getResponse(url, params, DoubanNoteFeedObj.class, false);
    return result;
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.note.DoubanNoteFeedObj

    System.out.println("getAllNotesFromUser");
    String userId = "xxx";
    Integer startIndex = 0;
    Integer maxResult = 2;
    DoubanNoteService instance = new DoubanNoteService();
    DoubanNoteFeedObj result = instance.getAllNotesFromUser(userId, startIndex, maxResult);
    assertTrue(result.getEntries().size() <= 2);
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.note.DoubanNoteFeedObj

   */
  public void testGetAllNotesFromUser_String() throws Exception {
    System.out.println("getAllNotesFromUser");
    String userId = "xxxx";
    DoubanNoteService instance = new DoubanNoteService();
    DoubanNoteFeedObj result = instance.getAllNotesFromUser(userId);
    assertTrue(result.getEntries().size() > 0);
    result = instance.getAllNotesFromUser("xxx");
    assertTrue(result.getEntries() == null || result.getEntries().isEmpty());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.