Examples of DoubanRatingObj


Examples of com.dongxuexidu.douban4j.model.common.DoubanRatingObj

    if (title != null && title.length() > 0) {
      obj.setTitle(title);
    } else {
      obj.setTitle("");
    }
    DoubanRatingObj rat = new DoubanRatingObj();
    if (rating > 5) {
      rating = 5;
    } else if (rating < 1) {
      rating = 1;
    }
    rat.setValue(rating);
    obj.setRating(rat);
    return obj;
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.common.DoubanRatingObj

      return null;
    }
    if (id != null) {
      col.setId(RequestUrls.DOUBAN_COLLECTION_PREFIX + "/" + id);
    }
    DoubanRatingObj rat = new DoubanRatingObj();
    if (rating > 5) {
      rating = 5;
    } else if (rating < 1) {
      rating = 1;
    }
    rat.setValue(rating);
    col.setRating(rat);
    if (tags != null && !tags.isEmpty()) {
      List<DoubanTagObj> tagsList = new ArrayList<DoubanTagObj>();
      for (String t : tags) {
        DoubanTagObj tag = new DoubanTagObj();
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.