source: extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgCategoriesProxyResponse.cs @ 7160

Last change on this file since 7160 was 7160, checked in by bayral, 14 years ago

Connection à partir de wpf

File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Xml.Serialization;
6using Com.Piwigo.Lib.DTO;
7
8namespace Com.Piwigo.Lib.Proxy.Response
9{
10    [Serializable()]
11    [XmlRoot(ElementName = "category")]
12    public class PwgCategoryProxyResponse
13    {
14        [XmlAttribute(AttributeName = "id")]
15        public Int32 Id { get; set; }
16        [XmlElement(ElementName = "uppercats")]
17        public String UpperCategoryId { get; set; }
18        [XmlElement (ElementName = "name")]
19        public String Name { get; set; }
20        [XmlAttribute(AttributeName = "url")]
21        public String Url { get; set; }
22        [XmlAttribute(AttributeName = "nb_images")]
23        public Int64 ImagesCount { get; set; }
24        [XmlAttribute(AttributeName = "total_nb_images")]
25        public Int64 DeepImagesCount { get; set; }
26        [XmlAttribute(AttributeName = "nb_categories")]
27        public Int64 SubCategoriesCount { get; set; }
28        [XmlAttribute(AttributeName = "max_date_last")]
29        public String LastDate { get; set; }
30    }
31
32    [Serializable()]
33    [XmlRoot(ElementName = "rsp")]
34    public class PwgCategoriesProxyResponse : PwgBaseProxyReponse
35    {
36        [XmlArray("categories")]
37        [XmlArrayItem("category")]
38        public PwgCategoryProxyResponse[] Categories { get; set; }
39    }
40}
Note: See TracBrowser for help on using the repository browser.