using System.Xml.Serialization; using System.Xml.Schema; namespace FlickrNet { /// /// Collection of items for a given photograph. /// [System.Serializable] public class Sizes { private Size[] _sizeCollection = new Size[0]; /// /// The size collection contains an array of items. /// [XmlElement("size", Form=XmlSchemaForm.Unqualified)] public Size[] SizeCollection { get { return _sizeCollection; } set { _sizeCollection = value; } } } /// /// Contains details about all the sizes available for a given photograph. /// [System.Serializable] public class Size { private string _label; private int _width; private int _height; private string _source; private string _url; /// /// The label for the size, such as "Thumbnail", "Small", "Medium", "Large" and "Original". /// [XmlAttribute("label", Form=XmlSchemaForm.Unqualified)] public string Label { get { return _label; } set { _label = value; } } /// /// The width of the resulting image, in pixels /// [XmlAttribute("width", Form=XmlSchemaForm.Unqualified)] public int Width { get { return _width; } set { _width = value; } } /// /// The height of the resulting image, in pixels /// [XmlAttribute("height", Form=XmlSchemaForm.Unqualified)] public int Height { get { return _height; } set { _height = value; } } /// /// The source url of the image. /// [XmlAttribute("source", Form=XmlSchemaForm.Unqualified)] public string Source { get { return _source; } set { _source = value; } } /// /// The url to the photographs web page for this particular size. /// [XmlAttribute("url", Form=XmlSchemaForm.Unqualified)] public string Url { get { return _url; } set { _url = value; } } } }