This project has moved. For the latest updates, please go here.

PhotoSets.PhotosetCollection[].PhotoCollection problem

Topics: Developer Forum, Project Management Forum, User Forum
Mar 24, 2010 at 1:20 AM
I used the following code in my program: Photosets sets = flickr1.PhotosetsGetList(); int i = 0; while (i < sets.PhotosetCollection.Length) { if (photosetslist.SelectedItem.ToString() == sets.PhotosetCollection[i].Title) { foreach (Photo photo in sets.PhotosetCollection[i].PhotoCollection) { photoslist.Items.Add(photo.Title); } break; } i++; } 'photoslist' is a listbox. I want to get the list of photos in a particular photoset. But I don't get any result from the above code. (I get proper information in name and length fields in sets.PhotosetCollection[]). Someone please help. Urgent.
Mar 24, 2010 at 7:53 AM

PhotosetsGetList returns a list of photosets. It does not return any photos. You need to call PhotosetGetPhotos with the photoset Id to get these.

The new version of the code enforces this because PhotosetsGetList now returns PhotosetCollection while PhotosetGetPhotos returns PhotosetPhotoCollection.