Logo Search packages:      
Sourcecode: f-spot version File versions

PhotoCounts.cs

using System;
using System.Xml.Serialization;
using System.Xml.Schema;

namespace FlickrNet
{
      /// <summary>
      /// The information about the number of photos a user has.
      /// </summary>
      [System.Serializable]
00011       public class PhotoCounts
      {
            /// <summary>
            /// An array of <see cref="PhotoCountInfo"/> instances. Null if no counts returned.
            /// </summary>
            [XmlElement("photocount", Form=XmlSchemaForm.Unqualified)]
00017             public PhotoCountInfo[] PhotoCountInfoCollection = new PhotoCountInfo[0];
      }

      /// <summary>
      /// The specifics of a particular count.
      /// </summary>
      [System.Serializable]
00024       public class PhotoCountInfo
      {
            /// <summary>Total number of photos between the FromDate and the ToDate.</summary>
            /// <remarks/>
            [XmlAttribute("count", Form=XmlSchemaForm.Unqualified)]
00029             public int PhotoCount;
    
            /// <summary>The From date as a <see cref="DateTime"/> object.</summary>
            [XmlIgnore()]
            public DateTime FromDate
00034             {
                  get 
                  {
                        return Utils.UnixTimestampToDate(fromdate_raw);
                  }
            }

            /// <summary>The To date as a <see cref="DateTime"/> object.</summary>
            [XmlIgnore()]
            public DateTime ToDate
00044             {
                  get 
                  {
                        return Utils.UnixTimestampToDate(todate_raw);
                  }
            }

            /// <summary>The original from date in unix timestamp format.</summary>
            /// <remarks/>
            [XmlAttribute("fromdate", Form=XmlSchemaForm.Unqualified)]
00054             public string fromdate_raw;
    
            /// <summary>The original to date in unix timestamp format.</summary>
            /// <remarks/>
            [XmlAttribute("todate", Form=XmlSchemaForm.Unqualified)]
00059             public string todate_raw;

      }
}

Generated by  Doxygen 1.6.0   Back to index