using System;
using System.Xml.Serialization;
using System.Xml.Schema;
namespace FlickrNet
{
///
/// The information about the number of photos a user has.
///
[System.Serializable]
public class PhotoCounts
{
///
/// An array of instances. Null if no counts returned.
///
[XmlElement("photocount", Form=XmlSchemaForm.Unqualified)]
public PhotoCountInfo[] PhotoCountInfoCollection = new PhotoCountInfo[0];
}
///
/// The specifics of a particular count.
///
[System.Serializable]
public class PhotoCountInfo
{
/// Total number of photos between the FromDate and the ToDate.
///
[XmlAttribute("count", Form=XmlSchemaForm.Unqualified)]
public int PhotoCount;
/// The From date as a object.
[XmlIgnore()]
public DateTime FromDate
{
get
{
return Utils.UnixTimestampToDate(fromdate_raw);
}
}
/// The To date as a object.
[XmlIgnore()]
public DateTime ToDate
{
get
{
return Utils.UnixTimestampToDate(todate_raw);
}
}
/// The original from date in unix timestamp format.
///
[XmlAttribute("fromdate", Form=XmlSchemaForm.Unqualified)]
public string fromdate_raw;
/// The original to date in unix timestamp format.
///
[XmlAttribute("todate", Form=XmlSchemaForm.Unqualified)]
public string todate_raw;
}
}