1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using System.Xml.Serialization; |
---|
6 | using Com.Piwigo.Lib.DTO; |
---|
7 | |
---|
8 | namespace 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 | } |
---|