Package com.google.gdata.data.photos

Examples of com.google.gdata.data.photos.AlbumEntry


    albumQuery.setFields(fields);

    AlbumFeed feed = service.query(albumQuery, AlbumFeed.class);
    for (GphotoEntry entry : feed.getEntries()) {
      if (entry instanceof AlbumEntry) {
        AlbumEntry albumEntry = (AlbumEntry) entry;
        OUT.println(albumEntry.getGphotoId() + ":"
            + albumEntry.getTitle().getPlainText()
            + " (" + albumEntry.getLocation()  + ")");
      }
    }
  }
View Full Code Here


    // Get the current album entry
    String albumEntryUrl = API_PREFIX + uname + "/" + albumId;
    String fields = "@gd:etag,gphoto:location";
    Query patchQuery = new Query(new URL(albumEntryUrl));
    patchQuery.setFields(fields);
    AlbumEntry entry = service.getEntry(patchQuery.getUrl(), AlbumEntry.class);
    OUT.println("Current location: " + entry.getLocation());

    // Update the location in the album entry
    OUT.println("Specify new location: ");
    String newLocation = IN.readLine();
    entry.setLocation(newLocation);
    entry.setSelectedFields("gphoto:location");
    AlbumEntry updated = service.patch(new URL(albumEntryUrl), fields, entry);
    OUT.println("Location set to: " + updated.getLocation());
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.photos.AlbumEntry

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.