public PhotosGeoGetPerms ( string photoId ) : GeoPermissions | ||
photoId | string | The id of the photo to get permissions for. |
Результат | GeoPermissions |
public GeoPermissions PhotosGeoGetPerms(string photoId)
{
Hashtable parameters = new Hashtable();
parameters.Add("method", "flickr.photos.geo.getPerms");
parameters.Add("photo_id", photoId);
FlickrNet.Response response = GetResponseCache(parameters);
if( response.Status == ResponseStatus.OK )
{
return new GeoPermissions(response.AllElements[0]);
}
else
{
throw new FlickrException(response.Error);
}
}