Hi,

You cant access the photos in an album without first requesting the
photo feed from that specific album. Not to my knowledge. :)

Here is an example

If you have the albumId and userid this is possible.


 public List<PhotoAccessorWrapper> GetPicturesInAlbum(string albumId,
string userId)
        {

                PhotoQuery query = new PhotoQuery
( PicasaQuery.CreatePicasaUri(userId, albumId) );
                query.KindParameter = "photo";

                PicasaFeed feed = service.Query(query);

                return feed.Entries.Select((entry) =>
                    {
                        var accessor = new PhotoAccessor(entry as
PicasaEntry);

                        return new PhotoAccessorWrapper
                        {
                            AlbumId = accessor.AlbumId,
                            Checksum = accessor.Checksum,
                            Client = accessor.Client,
                            CommentCount = (int)accessor.CommentCount,
                            CommentingEnabled =
accessor.CommentingEnabled,
                            Height = accessor.Height,
                            Id = accessor.Id,
                            Latitude = accessor.Latitude,
                            Longitude = accessor.Longitude,
                            PhotoSummary = accessor.PhotoSummary,
                            PhotoTitle = accessor.PhotoTitle,
                            Rotation = accessor.Rotation,
                            Size = accessor.Size,
                            Timestamp = (long)accessor.Timestamp,
                            Version = accessor.Version,
                            Width = accessor.Width,
                            Thumbnail = new Uri((entry as
PicasaEntry).Media.Thumbnails[2].Url, UriKind.Absolute),
                            Source = new Uri((entry as
PicasaEntry).Media.Content.Url, UriKind.Absolute)


                        };
                    }).ToList();
              }

Error handling is ommited for clarity.

Anders


On 26 Sep, 09:42, Brendon <[email protected]> wrote:
> Can someone give me an idea of how to access the previous and next
> photo entries inside an album feed via the .NET API? Is this
> information stored somewhere in a photo entry? Seems like something
> simple but I am not seeing it. Thanks.
>
> Brendon

--

You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=.


Reply via email to