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

Sizes.cs

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

namespace FlickrNet
{
      /// <summary>
      /// Collection of <see cref="Size"/> items for a given photograph.
      /// </summary>
      [System.Serializable]
00010       public class Sizes
      {
            private Size[] _sizeCollection = new Size[0];

            /// <summary>
            /// The size collection contains an array of <see cref="Size"/> items.
            /// </summary>
            [XmlElement("size", Form=XmlSchemaForm.Unqualified)]
            public Size[] SizeCollection
00019             {
                  get { return _sizeCollection; }
                  set { _sizeCollection = value; }
            }
      }

      /// <summary>
      /// Contains details about all the sizes available for a given photograph.
      /// </summary>
      [System.Serializable]
00029       public class Size
      {
            private string _label;
            private int _width;
            private int _height;
            private string _source;
            private string _url;

            /// <summary>
            /// The label for the size, such as "Thumbnail", "Small", "Medium", "Large" and "Original".
            /// </summary>
            [XmlAttribute("label", Form=XmlSchemaForm.Unqualified)]
            public string Label
00042             {
                  get { return _label; }
                  set { _label = value; }
            }
    
        /// <summary>
        /// The width of the resulting image, in pixels
        /// </summary>
            [XmlAttribute("width", Form=XmlSchemaForm.Unqualified)]
            public int Width
00052             {
                  get { return _width; }
                  set { _width = value; }
            }
    
            /// <summary>
            /// The height of the resulting image, in pixels
            /// </summary>
            [XmlAttribute("height", Form=XmlSchemaForm.Unqualified)]
            public int Height
00062             {
                  get { return _height; }
                  set { _height = value; }
            }
    
            /// <summary>
            /// The source url of the image.
            /// </summary>
            [XmlAttribute("source", Form=XmlSchemaForm.Unqualified)]
            public string Source
00072             {
                  get { return _source; }
                  set { _source = value; }
            }
    
            /// <summary>
            /// The url to the photographs web page for this particular size.
            /// </summary>
            [XmlAttribute("url", Form=XmlSchemaForm.Unqualified)]
            public string Url
00082             {
                  get { return _url; }
                  set { _url = value; }
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index