~ubuntu-branches/debian/squeeze/f-spot/squeeze

« back to all changes in this revision

Viewing changes to extensions/Exporters/FlickrExport/FlickrNet/PhotoSets.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane, Mirco Bauer, Iain Lane
  • Date: 2009-02-07 20:23:32 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20090207202332-oc93rfjo1st0571s
Tags: 0.5.0.3-2
[ Mirco Bauer]
* Upload to unstable.
* debian/control:
  + Lowered GNOME# build-deps to 2.0 ABI as that transition didn't happen
    yet in unstable.

[ Iain Lane ]
* debian/patches/svn-r4545_locales-import.dpatch: Patch backported from SVN
  trunk revision 4545 - initialize the translation catalog earlier (LP: #293305)
  (Closes: #514457). Thanks to Florian Heinle for finding the patch and to
  Chris Coulson for preparing the update.
* debian/control: Build-depend on libmono-dev (>= 1.2.4) to match configure
  checks.
* debian/rules: Pass CSC=/usr/bin/csc to configure for gio-sharp to fix FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System.Xml.Serialization;
 
2
using System.Xml.Schema;
 
3
 
 
4
namespace FlickrNet
 
5
{
 
6
        /// <summary>
 
7
        /// Collection containing a users photosets.
 
8
        /// </summary>
 
9
        [System.Serializable]
 
10
        public class Photosets
 
11
        {
 
12
                private int _canCreate;
 
13
                private Photoset[] _photosetCollection = new Photoset[0];
 
14
 
 
15
                /// <summary>
 
16
                /// Can the user create more photosets.
 
17
                /// </summary>
 
18
                /// <remarks>
 
19
                /// 1 meants yes, 0 means no.
 
20
                /// </remarks>
 
21
                [XmlAttribute("cancreate", Form=XmlSchemaForm.Unqualified)]
 
22
                public int CanCreate
 
23
                {
 
24
                        get { return _canCreate; }
 
25
                        set { _canCreate = value; }
 
26
                }
 
27
 
 
28
                /// <summary>
 
29
                /// An array of <see cref="Photoset"/> objects.
 
30
                /// </summary>
 
31
                [XmlElement("photoset", Form=XmlSchemaForm.Unqualified)]
 
32
                public Photoset[] PhotosetCollection
 
33
                {
 
34
                        get { return _photosetCollection; }
 
35
                        set
 
36
                        {
 
37
                                if( value== null )
 
38
                                        _photosetCollection = new Photoset[0];
 
39
                                else
 
40
                                        _photosetCollection = value;
 
41
                        }
 
42
                }
 
43
        }
 
44
 
 
45
        /// <summary>
 
46
        /// A set of properties for the photoset.
 
47
        /// </summary>
 
48
        [System.Serializable]
 
49
        public class Photoset
 
50
        {
 
51
                private string _photosetId;
 
52
                private string _url;
 
53
                private string _ownerId;
 
54
                private string _primaryPhotoId;
 
55
                private string _secret;
 
56
                private string _server;
 
57
                private string _farm;
 
58
                private int _numberOfPhotos;
 
59
                private string _title;
 
60
                private string _description;
 
61
                private Photo[] _photoCollection = new Photo[0];
 
62
 
 
63
                /// <summary>
 
64
                /// The ID of the photoset.
 
65
                /// </summary>
 
66
                [XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
 
67
                public string PhotosetId
 
68
                {
 
69
                        get { return _photosetId; } set { _photosetId = value; }
 
70
                }
 
71
 
 
72
                /// <summary>
 
73
                /// The URL of the photoset.
 
74
                /// </summary>
 
75
                [XmlAttribute("url", Form=XmlSchemaForm.Unqualified)]
 
76
                public string Url
 
77
                {
 
78
                        get { return _url; } set { _url = value; }
 
79
                }
 
80
 
 
81
                /// <summary>
 
82
                /// The ID of the owner of the photoset.
 
83
                /// </summary>
 
84
                [XmlAttribute("owner", Form=XmlSchemaForm.Unqualified)]
 
85
                public string OwnerId
 
86
                {
 
87
                        get { return _ownerId; } set { _ownerId = value; }
 
88
                }
 
89
 
 
90
                /// <summary>
 
91
                /// The photo ID of the primary photo of the photoset.
 
92
                /// </summary>
 
93
                [XmlAttribute("primary", Form=XmlSchemaForm.Unqualified)]
 
94
                public string PrimaryPhotoId
 
95
                {
 
96
                        get { return _primaryPhotoId; } set { _primaryPhotoId = value; }
 
97
                }
 
98
 
 
99
                /// <summary>
 
100
                /// The secret for the primary photo for the photoset.
 
101
                /// </summary>
 
102
                [XmlAttribute("secret", Form=XmlSchemaForm.Unqualified)]
 
103
                public string Secret
 
104
                {
 
105
                        get { return _secret; } set { _secret = value; }
 
106
                }
 
107
 
 
108
                /// <summary>
 
109
                /// The server for the primary photo for the photoset.
 
110
                /// </summary>
 
111
                [XmlAttribute("server", Form=XmlSchemaForm.Unqualified)]
 
112
                public string Server
 
113
                {
 
114
                        get { return _server; } set { _server = value; }
 
115
                }
 
116
 
 
117
                /// <summary>
 
118
                /// The server farm for the primary photo for the photoset.
 
119
                /// </summary>
 
120
                [XmlAttribute("farm", Form=XmlSchemaForm.Unqualified)]
 
121
                public string Farm
 
122
                {
 
123
                        get { return _farm; } set { _farm = value; }
 
124
                }
 
125
 
 
126
                /// <summary>
 
127
                /// The number of photos in the photoset.
 
128
                /// </summary>
 
129
                [XmlAttribute("photos", Form=XmlSchemaForm.Unqualified)]
 
130
                public int NumberOfPhotos
 
131
                {
 
132
                        get { return _numberOfPhotos; } set { _numberOfPhotos = value; }
 
133
                }
 
134
 
 
135
                /// <summary>
 
136
                /// The title of the photoset.
 
137
                /// </summary>
 
138
                [XmlElement("title", Form=XmlSchemaForm.Unqualified)]
 
139
                public string Title
 
140
                {
 
141
                        get { return _title; } set { _title = value; }
 
142
                }
 
143
 
 
144
                /// <summary>
 
145
                /// The description of the photoset.
 
146
                /// </summary>
 
147
                [XmlElement("description", Form=XmlSchemaForm.Unqualified)]
 
148
                public string Description
 
149
                {
 
150
                        get { return _description; } set { _description = value; }
 
151
                }
 
152
 
 
153
                /// <summary>
 
154
                /// An array of photo objects in the photoset.
 
155
                /// </summary>
 
156
                [XmlElement("photo", Form=XmlSchemaForm.Unqualified)]
 
157
                public Photo[] PhotoCollection
 
158
                {
 
159
                        get { return _photoCollection; }
 
160
                        set
 
161
                        {
 
162
                                if( value == null )
 
163
                                        _photoCollection = new Photo[0];
 
164
                                else
 
165
                                        _photoCollection = value;
 
166
                        }
 
167
                }
 
168
 
 
169
                /// <summary>
 
170
                /// The URL for the thumbnail of a photo.
 
171
                /// </summary>
 
172
                [XmlIgnore()]
 
173
                public string PhotosetThumbnailUrl
 
174
                {
 
175
                        get { return Utils.UrlFormat(this, "_t", "jpg"); }
 
176
                }
 
177
 
 
178
                /// <summary>
 
179
                /// The URL for the square thumbnail of a photo.
 
180
                /// </summary>
 
181
                [XmlIgnore()]
 
182
                public string PhotosetSquareThumbnailUrl
 
183
                {
 
184
                        get { return Utils.UrlFormat(this, "_s", "jpg"); }
 
185
                }
 
186
 
 
187
                /// <summary>
 
188
                /// The URL for the small copy of a photo.
 
189
                /// </summary>
 
190
                [XmlIgnore()]
 
191
                public string PhotosetSmallUrl
 
192
                {
 
193
                        get { return Utils.UrlFormat(this, "_m", "jpg"); }
 
194
                }
 
195
 
 
196
 
 
197
 
 
198
 
 
199
        }
 
200
}
 
 
b'\\ No newline at end of file'