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

« back to all changes in this revision

Viewing changes to extensions/Exporters/FlickrExport/FlickrNet/PhotoDates.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.Serialization;
 
3
using System.Xml.Schema;
 
4
 
 
5
namespace FlickrNet
 
6
{
 
7
        /// <summary>
 
8
        /// The date information for a photo.
 
9
        /// </summary>
 
10
        [System.Serializable]
 
11
        public class PhotoDates
 
12
        {
 
13
                /// <summary>
 
14
                /// The date the photo was posted (or uploaded).
 
15
                /// </summary>
 
16
                [XmlIgnore]
 
17
                public DateTime PostedDate
 
18
                {
 
19
                        get { return Utils.UnixTimestampToDate(raw_posted); }
 
20
                }
 
21
 
 
22
                /// <summary>
 
23
                /// The raw timestamp for the date the photo was posted.
 
24
                /// </summary>
 
25
                /// <remarks>Use <see cref="PhotoDates.PostedDate"/> instead.</remarks>
 
26
                [XmlAttribute("posted", Form=XmlSchemaForm.Unqualified)]
 
27
                public long raw_posted;
 
28
 
 
29
                /// <summary>
 
30
                /// The date the photo was taken.
 
31
                /// </summary>
 
32
                [XmlIgnore]
 
33
                public DateTime TakenDate
 
34
                {
 
35
                        get { return DateTime.Parse(raw_taken); }
 
36
                }
 
37
 
 
38
                /// <summary>
 
39
                /// The raw timestamp for the date the photo was taken.
 
40
                /// </summary>
 
41
                /// <remarks>Use <see cref="PhotoDates.TakenDate"/> instead.</remarks>
 
42
                [XmlAttribute("taken", Form=XmlSchemaForm.Unqualified)]
 
43
                public string raw_taken;
 
44
 
 
45
                /// <summary>
 
46
                /// The granularity of the taken date.
 
47
                /// </summary>
 
48
                [XmlAttribute("takengranularity", Form=XmlSchemaForm.Unqualified)]
 
49
                public int TakenGranularity;
 
50
 
 
51
                /// <summary>
 
52
                /// The raw timestamp for the date the photo was last updated.
 
53
                /// </summary>
 
54
                [XmlAttribute("lastupdate", Form=XmlSchemaForm.Unqualified)]
 
55
                public long raw_lastupdate;
 
56
 
 
57
                /// <summary>
 
58
                /// The date the photo was last updated (includes comments, tags, title, description etc).
 
59
                /// </summary>
 
60
                [XmlIgnore()]
 
61
                public DateTime LastUpdated
 
62
                {
 
63
                        get{ return Utils.UnixTimestampToDate(raw_lastupdate); }
 
64
                }
 
65
 
 
66
        }
 
67
 
 
68
}