This project has moved and is read-only. For the latest updates, please go here.

Local changes: FlickrNet.Group.IconServer & accessor guards in FlickrNet.PhotoDates

Topics: Developer Forum
Jan 11, 2008 at 2:13 PM

I made a couple of local changes to my download of Flickr .Net (24948). They may not be the best way of acheiving what I needed but I thought you'd want to know.

1) Added FlickrNet.Group.IconServer (it's needed to build the URL to the group's buddy icon)

public string IconServer;

internal GroupFullInfo(XmlNode node)
if( node.Attributes.GetNamedItem("iconserver") != null )
IconServer = node.Attributes.GetNamedItem("iconserver").Value;

2) Though the accessor FlickrNet.Photo.DateTaken has a line to guard against null or empty raw dates, the accessor in FlickrNet.PhotoDates.DateTaken doesn't. I had added some after one photo (and I'm kicking myself that I didn't log which one) caused an argument exception in DateTime.Parse

Let me know if I should have been using the API differently and those things were already covered.


Jan 11, 2008 at 3:41 PM
I've added both of those to the source. Thanks for pointing them out.