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

« back to all changes in this revision

Viewing changes to extensions/Exporters/FlickrExport/FlickrNet/Sizes.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 of <see cref="Size"/> items for a given photograph.
 
8
        /// </summary>
 
9
        [System.Serializable]
 
10
        public class Sizes
 
11
        {
 
12
                private Size[] _sizeCollection = new Size[0];
 
13
 
 
14
                /// <summary>
 
15
                /// The size collection contains an array of <see cref="Size"/> items.
 
16
                /// </summary>
 
17
                [XmlElement("size", Form=XmlSchemaForm.Unqualified)]
 
18
                public Size[] SizeCollection
 
19
                {
 
20
                        get { return _sizeCollection; }
 
21
                        set { _sizeCollection = value; }
 
22
                }
 
23
        }
 
24
 
 
25
        /// <summary>
 
26
        /// Contains details about all the sizes available for a given photograph.
 
27
        /// </summary>
 
28
        [System.Serializable]
 
29
        public class Size
 
30
        {
 
31
                private string _label;
 
32
                private int _width;
 
33
                private int _height;
 
34
                private string _source;
 
35
                private string _url;
 
36
 
 
37
                /// <summary>
 
38
                /// The label for the size, such as "Thumbnail", "Small", "Medium", "Large" and "Original".
 
39
                /// </summary>
 
40
                [XmlAttribute("label", Form=XmlSchemaForm.Unqualified)]
 
41
                public string Label
 
42
                {
 
43
                        get { return _label; }
 
44
                        set { _label = value; }
 
45
                }
 
46
 
 
47
        /// <summary>
 
48
        /// The width of the resulting image, in pixels
 
49
        /// </summary>
 
50
                [XmlAttribute("width", Form=XmlSchemaForm.Unqualified)]
 
51
                public int Width
 
52
                {
 
53
                        get { return _width; }
 
54
                        set { _width = value; }
 
55
                }
 
56
 
 
57
                /// <summary>
 
58
                /// The height of the resulting image, in pixels
 
59
                /// </summary>
 
60
                [XmlAttribute("height", Form=XmlSchemaForm.Unqualified)]
 
61
                public int Height
 
62
                {
 
63
                        get { return _height; }
 
64
                        set { _height = value; }
 
65
                }
 
66
 
 
67
                /// <summary>
 
68
                /// The source url of the image.
 
69
                /// </summary>
 
70
                [XmlAttribute("source", Form=XmlSchemaForm.Unqualified)]
 
71
                public string Source
 
72
                {
 
73
                        get { return _source; }
 
74
                        set { _source = value; }
 
75
                }
 
76
 
 
77
                /// <summary>
 
78
                /// The url to the photographs web page for this particular size.
 
79
                /// </summary>
 
80
                [XmlAttribute("url", Form=XmlSchemaForm.Unqualified)]
 
81
                public string Url
 
82
                {
 
83
                        get { return _url; }
 
84
                        set { _url = value; }
 
85
                }
 
86
        }
 
87
}
 
 
b'\\ No newline at end of file'