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

Photos FlickrNet::Flickr::GroupPoolGetPhotos ( string  groupId,
string  tags,
int  perPage,
int  page 
) [inline]

Gets a list of photos for a given group.

Parameters:
groupId The group ID for the group.
tags Space seperated list of tags that photos returned must have.
perPage The number of photos per page.
page The page to return.
Returns:
A Photos object containing the list of photos.

Definition at line 1378 of file Flickr.cs.

            {
                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.groups.pools.getPhotos");
                  parameters.Add("group_id", groupId);
                  if( tags != null )parameters.Add("tags", tags);
                  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;
                  }
                  else
                  {
                        throw new FlickrException(response.Error);
                  }
            }


Generated by  Doxygen 1.6.0   Back to index