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

bool FlickrNet::Flickr::FavoritesAdd ( string  photoId  )  [inline]

Adds a photo to the logged in favourites. Requires authentication.

photoId The id of the photograph to add.
True if the operation is successful.

Definition at line 1022 of file Flickr.cs.

                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.favorites.add");
                  parameters.Add("photo_id", photoId);
                  FlickrNet.Response response = GetResponseCache(parameters);

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

Generated by  Doxygen 1.6.0   Back to index