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

« back to all changes in this revision

Viewing changes to extensions/FlickrExport/FlickrNet/ExifPhoto.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;
2
 
using System.Xml.Schema;
3
 
using System.Xml.Serialization;
4
 
 
5
 
namespace FlickrNet
6
 
{
7
 
        /// <summary>
8
 
        /// EXIF data for the selected photo.
9
 
        /// </summary>
10
 
        [Serializable]
11
 
        public class ExifPhoto
12
 
        {
13
 
                internal ExifPhoto(string photoId, string secret, int server, ExifTag[] array)
14
 
                {
15
 
                        _photoId = photoId;
16
 
                        _secret = secret;
17
 
                        _server = server;
18
 
                        _tagCollection = array;
19
 
                }
20
 
 
21
 
                private string _photoId;
22
 
                private string _secret;
23
 
                private int _server;
24
 
                private ExifTag[] _tagCollection;
25
 
 
26
 
                /// <summary>
27
 
                /// The Photo ID for the photo whose EXIF data this is.
28
 
                /// </summary>
29
 
                public string PhotoId
30
 
                {
31
 
                        get { return _photoId; }
32
 
                }
33
 
 
34
 
                /// <summary>
35
 
                /// The Secret of the photo.
36
 
                /// </summary>
37
 
                public string Secret
38
 
                {
39
 
                        get { return _secret; }
40
 
                }
41
 
 
42
 
                /// <summary>
43
 
                /// The server number for the photo.
44
 
                /// </summary>
45
 
                public int Server
46
 
                {
47
 
                        get { return _server; }
48
 
                }
49
 
 
50
 
                /// <summary>
51
 
                /// An array of EXIF tags. See <see cref="ExifTag"/> for more details.
52
 
                /// </summary>
53
 
                public ExifTag[] ExifTagCollection
54
 
                {
55
 
                        get { return _tagCollection; }
56
 
                }
57
 
        }
58
 
 
59
 
        /// <summary>
60
 
        /// Details of an individual EXIF tag.
61
 
        /// </summary>
62
 
        [Serializable]
63
 
        public class ExifTag
64
 
        {
65
 
                private string _tagSpace;
66
 
                private int _tagSpaceId;
67
 
                private string _tag;
68
 
                private string _label;
69
 
                private string _raw;
70
 
                private string _clean;
71
 
 
72
 
                /// <summary>
73
 
                /// The type of EXIF data, e.g. EXIF, TIFF, GPS etc.
74
 
                /// </summary>
75
 
                [XmlAttribute("tagspace")]
76
 
                public string TagSpace
77
 
                {
78
 
                        get { return _tagSpace; }
79
 
                        set { _tagSpace = value; }
80
 
                }
81
 
 
82
 
                /// <summary>
83
 
                /// An id number for the type of tag space.
84
 
                /// </summary>
85
 
                [XmlAttribute("tagspaceid")]
86
 
                public int TagSpaceId
87
 
                {
88
 
                        get { return _tagSpaceId; }
89
 
                        set { _tagSpaceId = value; }
90
 
                }
91
 
 
92
 
                /// <summary>
93
 
                /// The tag number.
94
 
                /// </summary>
95
 
                [XmlAttribute("tag")]
96
 
                public string Tag
97
 
                {
98
 
                        get { return _tag; }
99
 
                        set { _tag = value; }
100
 
                }
101
 
 
102
 
                /// <summary>
103
 
                /// The label, or description for the tag, such as Aperture
104
 
                /// or Manufacturer
105
 
                /// </summary>
106
 
                [XmlAttribute("label")]
107
 
                public string Label
108
 
                {
109
 
                        get { return _label; }
110
 
                        set { _label = value; }
111
 
                }
112
 
 
113
 
                /// <summary>
114
 
                /// The raw EXIF data.
115
 
                /// </summary>
116
 
                [XmlElement("raw")]
117
 
                public string Raw
118
 
                {
119
 
                        get { return _raw; }
120
 
                        set { _raw = value; }
121
 
                }
122
 
 
123
 
                /// <summary>
124
 
                /// An optional clean version of the <see cref="Raw"/> property.
125
 
                /// May be null if the <c>Raw</c> property is in a suitable format already.
126
 
                /// </summary>
127
 
                [XmlElement("clean")]
128
 
                public string Clean
129
 
                {
130
 
                        get { return _clean; }
131
 
                        set { _clean = value; }
132
 
                }
133
 
        }
134
 
}