FlickrNet.Flickr.PhotosGeoSetPerms C# (CSharp) Method

PhotosGeoSetPerms() public method

Set the permission for who can see geotagged photos on Flickr.
public PhotosGeoSetPerms ( string photoId, bool IsPublic, bool IsContact, bool IsFamily, bool IsFriend ) : void
photoId string The ID of the photo permissions to update.
IsPublic bool
IsContact bool
IsFamily bool
IsFriend bool
return void
        public void PhotosGeoSetPerms(string photoId, bool IsPublic, bool IsContact, bool IsFamily, bool IsFriend)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photos.geo.setPerms");
            parameters.Add("photo_id", photoId);
            parameters.Add("is_public", IsPublic?"1":"0");
            parameters.Add("is_contact", IsContact?"1":"0");
            parameters.Add("is_friend", IsFriend?"1":"0");
            parameters.Add("is_family", IsFamily?"1":"0");

            FlickrNet.Response response = GetResponseCache(parameters);

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