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

GroupPoolAdd() public méthode

Adds a photo to a pool you have permission to add photos to.
public GroupPoolAdd ( string photoId, string groupId ) : bool
photoId string The id of one of your photos to be added.
groupId string The id of a group you are a member of.
Résultat bool
        public bool GroupPoolAdd(string photoId, string groupId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.groups.pools.add");
            parameters.Add("photo_id", photoId);
            parameters.Add("group_id", groupId);
            FlickrNet.Response response = GetResponseCache(parameters);

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