FlickrNet.Flickr.FavoritesAdd C# (CSharp) Méthode

FavoritesAdd() public méthode

Adds a photo to the logged in favourites. Requires authentication.
public FavoritesAdd ( string photoId ) : bool
photoId string The id of the photograph to add.
Résultat bool
        public bool FavoritesAdd(string photoId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.favorites.add");
            parameters.Add("photo_id", photoId);
            FlickrNet.Response response = GetResponseCache(parameters);

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