1
using System.Xml.Serialization;
2
using System.Xml.Schema;
7
/// Collection containing a users photosets.
10
public class Photosets
12
private int _canCreate;
13
private Photoset[] _photosetCollection = new Photoset[0];
16
/// Can the user create more photosets.
19
/// 1 meants yes, 0 means no.
21
[XmlAttribute("cancreate", Form=XmlSchemaForm.Unqualified)]
24
get { return _canCreate; }
25
set { _canCreate = value; }
29
/// An array of <see cref="Photoset"/> objects.
31
[XmlElement("photoset", Form=XmlSchemaForm.Unqualified)]
32
public Photoset[] PhotosetCollection
34
get { return _photosetCollection; }
38
_photosetCollection = new Photoset[0];
40
_photosetCollection = value;
46
/// A set of properties for the photoset.
51
private string _photosetId;
53
private string _ownerId;
54
private string _primaryPhotoId;
55
private string _secret;
56
private string _server;
58
private int _numberOfPhotos;
59
private string _title;
60
private string _description;
61
private Photo[] _photoCollection = new Photo[0];
64
/// The ID of the photoset.
66
[XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
67
public string PhotosetId
69
get { return _photosetId; } set { _photosetId = value; }
73
/// The URL of the photoset.
75
[XmlAttribute("url", Form=XmlSchemaForm.Unqualified)]
78
get { return _url; } set { _url = value; }
82
/// The ID of the owner of the photoset.
84
[XmlAttribute("owner", Form=XmlSchemaForm.Unqualified)]
87
get { return _ownerId; } set { _ownerId = value; }
91
/// The photo ID of the primary photo of the photoset.
93
[XmlAttribute("primary", Form=XmlSchemaForm.Unqualified)]
94
public string PrimaryPhotoId
96
get { return _primaryPhotoId; } set { _primaryPhotoId = value; }
100
/// The secret for the primary photo for the photoset.
102
[XmlAttribute("secret", Form=XmlSchemaForm.Unqualified)]
105
get { return _secret; } set { _secret = value; }
109
/// The server for the primary photo for the photoset.
111
[XmlAttribute("server", Form=XmlSchemaForm.Unqualified)]
114
get { return _server; } set { _server = value; }
118
/// The server farm for the primary photo for the photoset.
120
[XmlAttribute("farm", Form=XmlSchemaForm.Unqualified)]
123
get { return _farm; } set { _farm = value; }
127
/// The number of photos in the photoset.
129
[XmlAttribute("photos", Form=XmlSchemaForm.Unqualified)]
130
public int NumberOfPhotos
132
get { return _numberOfPhotos; } set { _numberOfPhotos = value; }
136
/// The title of the photoset.
138
[XmlElement("title", Form=XmlSchemaForm.Unqualified)]
141
get { return _title; } set { _title = value; }
145
/// The description of the photoset.
147
[XmlElement("description", Form=XmlSchemaForm.Unqualified)]
148
public string Description
150
get { return _description; } set { _description = value; }
154
/// An array of photo objects in the photoset.
156
[XmlElement("photo", Form=XmlSchemaForm.Unqualified)]
157
public Photo[] PhotoCollection
159
get { return _photoCollection; }
163
_photoCollection = new Photo[0];
165
_photoCollection = value;
170
/// The URL for the thumbnail of a photo.
173
public string PhotosetThumbnailUrl
175
get { return Utils.UrlFormat(this, "_t", "jpg"); }
179
/// The URL for the square thumbnail of a photo.
182
public string PhotosetSquareThumbnailUrl
184
get { return Utils.UrlFormat(this, "_s", "jpg"); }
188
/// The URL for the small copy of a photo.
191
public string PhotosetSmallUrl
193
get { return Utils.UrlFormat(this, "_m", "jpg"); }
b'\\ No newline at end of file'