Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

Photos FlickrNet::Flickr::FavoritesGetList ( string  userId,
int  perPage,
int  page 
) [inline]

Get a list of favourites for the specified user.

userId The user id of the user whose favourites you wish to retrieve.
perPage Number of photos to include per page.
page The page to download this time.
Photos instance containing a collection of Photo objects.

Definition at line 1101 of file Flickr.cs.

                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.favorites.getList");
                  if( userId != null ) parameters.Add("user_id", userId);
                  if( perPage > 0 ) parameters.Add("per_page", perPage.ToString());
                  if( page > 0 ) parameters.Add("page", page.ToString());
                  FlickrNet.Response response = GetResponseCache(parameters);

                  if( response.Status == ResponseStatus.OK )
                        return response.Photos;
                        throw new FlickrException(response.Error);

Generated by  Doxygen 1.6.0   Back to index