2
using System.Xml.Serialization;
3
using System.Xml.Schema;
8
/// The date information for a photo.
11
public class PhotoDates
14
/// The date the photo was posted (or uploaded).
17
public DateTime PostedDate
19
get { return Utils.UnixTimestampToDate(raw_posted); }
23
/// The raw timestamp for the date the photo was posted.
25
/// <remarks>Use <see cref="PhotoDates.PostedDate"/> instead.</remarks>
26
[XmlAttribute("posted", Form=XmlSchemaForm.Unqualified)]
27
public long raw_posted;
30
/// The date the photo was taken.
33
public DateTime TakenDate
35
get { return DateTime.Parse(raw_taken); }
39
/// The raw timestamp for the date the photo was taken.
41
/// <remarks>Use <see cref="PhotoDates.TakenDate"/> instead.</remarks>
42
[XmlAttribute("taken", Form=XmlSchemaForm.Unqualified)]
43
public string raw_taken;
46
/// The granularity of the taken date.
48
[XmlAttribute("takengranularity", Form=XmlSchemaForm.Unqualified)]
49
public int TakenGranularity;
52
/// The raw timestamp for the date the photo was last updated.
54
[XmlAttribute("lastupdate", Form=XmlSchemaForm.Unqualified)]
55
public long raw_lastupdate;
58
/// The date the photo was last updated (includes comments, tags, title, description etc).
61
public DateTime LastUpdated
63
get{ return Utils.UnixTimestampToDate(raw_lastupdate); }