1
using System.Xml.Serialization;
2
using System.Xml.Schema;
7
/// Collection of <see cref="Size"/> items for a given photograph.
12
private Size[] _sizeCollection = new Size[0];
15
/// The size collection contains an array of <see cref="Size"/> items.
17
[XmlElement("size", Form=XmlSchemaForm.Unqualified)]
18
public Size[] SizeCollection
20
get { return _sizeCollection; }
21
set { _sizeCollection = value; }
26
/// Contains details about all the sizes available for a given photograph.
31
private string _label;
34
private string _source;
38
/// The label for the size, such as "Thumbnail", "Small", "Medium", "Large" and "Original".
40
[XmlAttribute("label", Form=XmlSchemaForm.Unqualified)]
43
get { return _label; }
44
set { _label = value; }
48
/// The width of the resulting image, in pixels
50
[XmlAttribute("width", Form=XmlSchemaForm.Unqualified)]
53
get { return _width; }
54
set { _width = value; }
58
/// The height of the resulting image, in pixels
60
[XmlAttribute("height", Form=XmlSchemaForm.Unqualified)]
63
get { return _height; }
64
set { _height = value; }
68
/// The source url of the image.
70
[XmlAttribute("source", Form=XmlSchemaForm.Unqualified)]
73
get { return _source; }
74
set { _source = value; }
78
/// The url to the photographs web page for this particular size.
80
[XmlAttribute("url", Form=XmlSchemaForm.Unqualified)]
b'\\ No newline at end of file'