Package com.dongxuexidu.douban4j.model.collection

Examples of com.dongxuexidu.douban4j.model.collection.DoubanCollectionFeedObj


      params.add(new BasicNameValuePair("updated-min", Converters.convertDateToStringInRFC3339(startDate)));
    }
    if (endDate != null) {
      params.add(new BasicNameValuePair("updated-max", Converters.convertDateToStringInRFC3339(endDate)));
    }
    DoubanCollectionFeedObj result = this.client.getResponse(url, params, DoubanCollectionFeedObj.class, false);
    return result;
  }
View Full Code Here


   */
  public void testGetUsersCollection_String() throws Exception {
    System.out.println("getUsersCollection");
    String userId = "xxx";
    DoubanCollectionService instance = new DoubanCollectionService();
    DoubanCollectionFeedObj result = instance.getUsersCollection(userId);
    for (DoubanCollectionObj col : result.getCollections()) {
      System.out.println("col title : " + col.getTitle());
      System.out.println("col id : " + col.getId());
      System.out.println("col subject title : " + col.getSubject().getTitle());
    }
    assertTrue(result.getCollections().size() > 0);
  }
View Full Code Here

    Integer startIndex = 0;
    Integer maxResult = 2;
    Date startDate = null;
    Date endDate = null;
    DoubanCollectionService instance = new DoubanCollectionService();
    DoubanCollectionFeedObj result = instance.getUsersCollection(userId, category, tag, status, startIndex, maxResult, startDate, endDate);
    for (DoubanCollectionObj col : result.getCollections()) {
      System.out.println("col title : " + col.getTitle());
      System.out.println("col id : " + col.getId());
      System.out.println("col subject title : " + col.getSubject().getTitle());
    }
    assertTrue(result.getCollections().size() > 0);
  }
View Full Code Here

TOP

Related Classes of com.dongxuexidu.douban4j.model.collection.DoubanCollectionFeedObj

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.