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

Photos FlickrNet::Flickr::PhotosGetContactsPhotos ( long  count,
bool  justFriends,
bool  singlePhoto,
bool  includeSelf 
) [inline]

Gets your contacts most recent photos.

Parameters:
count The number of photos to return, from between 10 and 50.
justFriends If true only returns photos from contacts marked as 'friends'.
singlePhoto If true only returns a single photo for each of your contacts. Ignores the count if this is true.
includeSelf If true includes yourself in the group of people to return photos for.
Returns:
An instance of the Photo class containing the photos.

Definition at line 1732 of file Flickr.cs.

            {
                  if( (count < 10 || count > 50) && !singlePhoto )
                  {
                        throw new ArgumentOutOfRangeException("count", count, "Count must be between 10 and 50.");
                  }
                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.photos.getContactsPhotos");
                  if( count > 0 && !singlePhoto ) parameters.Add("count", count.ToString());
                  if( justFriends ) parameters.Add("just_friends", "1");
                  if( singlePhoto ) parameters.Add("single_photo", "1");
                  if( includeSelf ) parameters.Add("include_self", "1");

                  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