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

Photos FlickrNet::Flickr::PhotosGetNotInSet ( int  perPage,
int  page,
PhotoSearchExtras  extras 
) [inline]

Gets a list of a users photos which are not in a set.

Parameters:
perPage Number of photos per page.
page The page number to return.
extras PhotoSearchExtras enumeration.
Returns:
Photos instance containing list of photos.

Definition at line 2035 of file Flickr.cs.

            {
                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.photos.getNotInSet");
                  if( perPage > 0 ) parameters.Add("per_page", perPage.ToString());
                  if( page > 0 ) parameters.Add("page", page.ToString());
                  if( extras != PhotoSearchExtras.None )
                  {
                        string val = "";
                        if( (extras & PhotoSearchExtras.DateTaken) == PhotoSearchExtras.DateTaken )
                              val += "date_taken,";
                        if( (extras & PhotoSearchExtras.DateUploaded) == PhotoSearchExtras.DateUploaded )
                              val += "date_upload,";
                        if( (extras & PhotoSearchExtras.IconServer) == PhotoSearchExtras.IconServer )
                              val += "icon_server,";
                        if( (extras & PhotoSearchExtras.License) == PhotoSearchExtras.License )
                              val += "license,";
                        if( (extras & PhotoSearchExtras.OwnerName) == PhotoSearchExtras.OwnerName )
                              val += "owner_name,";
                        if( (extras & PhotoSearchExtras.OriginalFormat) == PhotoSearchExtras.OriginalFormat )
                              val += "original_format";
                        parameters.Add("extras", val);
                  }

                  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