Package com.google.gdata.data.photos

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


   */
  public List<CommentEntry> getComments(PhotoEntry photo) throws IOException,
      ServiceException {

    String feedHref = getLinkByRel(photo.getLinks(), Link.Rel.FEED);
    AlbumFeed albumFeed = getFeed(feedHref, AlbumFeed.class);

    List<GphotoEntry> entries = albumFeed.getEntries();
    List<CommentEntry> comments = new ArrayList<CommentEntry>();
    for (GphotoEntry entry : entries) {
      GphotoEntry adapted = entry.getAdaptedEntry();
      if (adapted instanceof CommentEntry) {
        comments.add((CommentEntry) adapted);
View Full Code Here


  public List<TagEntry> getTags(GphotoEntry<?> parent) throws IOException,
      ServiceException {

    String feedHref = getLinkByRel(parent.getLinks(), Link.Rel.FEED);
    feedHref = addKindParameter(feedHref, "tag");
    AlbumFeed albumFeed = getFeed(feedHref, AlbumFeed.class);

    List<GphotoEntry> entries = albumFeed.getEntries();
    List<TagEntry> tags = new ArrayList<TagEntry>();
    for (GphotoEntry entry : entries) {
      GphotoEntry adapted = entry.getAdaptedEntry();
      if (adapted instanceof TagEntry) {
        tags.add((TagEntry) adapted);
View Full Code Here

    List<PhotoModel> result = new ArrayList<PhotoModel>();
    try {
      PicasawebService service = new PicasawebService("Kirin-App");
      service.setAuthSubToken(this.getThreadLocalRequest().getSession().getAttribute("sessionToken").toString());
      URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/" + userId + "/albumid/" + albumid);
      AlbumFeed albumFeed = service.getFeed(feedUrl, AlbumFeed.class);
      PhotoModel photoModel = null;
      for (PhotoEntry photoEntry : albumFeed.getPhotoEntries()) {
        photoModel = new PhotoModel();
        photoModel.setTitle(photoEntry.getTitle().getPlainText());
        photoModel.setThumbURL((photoEntry.getMediaThumbnails().get(2).getUrl()));
        photoModel.setHeight(photoEntry.getMediaGroup().getContents().get(0).getHeight());
        photoModel.setWidth(photoEntry.getMediaGroup().getContents().get(0).getWidth());
View Full Code Here

TOP

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

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.