Package com.google.gdata.data.books

Examples of com.google.gdata.data.books.VolumeEntry


   * @throws IOException Error sending request or reading the feed.
   * @throws ServiceException If the service is unable to handle the request.
   */
  private static void addToLibrary(BooksService service, String volumeId)
      throws IOException, ServiceException {
    VolumeEntry newEntry = new VolumeEntry();
    newEntry.setId(volumeId);
    try {
      service.insert(new URL(USER_LIBRARY_FEED), newEntry);
    } catch (ServiceException se) {
      System.out.println("There was an error adding your volume.\n");
      return;
View Full Code Here


   * @throws ServiceException If the service is unable to handle the request.
   */
  private static void addRating(BooksService service,
                                String volumeId, int value)
      throws IOException, ServiceException {
    VolumeEntry newEntry = new VolumeEntry();
    newEntry.setId(volumeId);
    Rating rating = new Rating();
    rating.setMin(1);
    rating.setMax(5);
    rating.setValue(value);
    newEntry.setRating(rating);
    try {
      service.insert(new URL(USER_ANNOTATION_FEED), newEntry);
    } catch (ServiceException se) {
      System.out.println("There was an error adding your rating.\n");
      return;
View Full Code Here

TOP

Related Classes of com.google.gdata.data.books.VolumeEntry

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.