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

Last change on this file since 12262 was 12262, checked in by bayral, 13 years ago

piwigo.upload retrieve data, and ready to upload

File size: 3.6 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    //todo : admin list deifferent !!!!
11//    <rsp stat="ok">
12//<categories>
13//    <category id="1" nb_images="34" total_nb_images="34" date_last="2011-04-12 00:39:03" max_date_last="2011-04-12 00:39:03" nb_categories="1" url="http://photo.bayral.fr/index.php?/category/1">
14//        <name>2011 01 02 Dimanche au Ski</name>
15//        <uppercats>1</uppercats>
16//        <global_rank>1</global_rank>
17//        <comment></comment></category>
18//    <category id="12" nb_images="0" total_nb_images="0" nb_categories="0" url="http://photo.bayral.fr/index.php?/category/12">
19//        <name>test</name>
20//        <uppercats>1,12</uppercats>
21//        <global_rank>1.1</global_rank>
22//        <id_uppercat>1</id_uppercat>
23//        <comment></comment></category>
24//    <category id="2" nb_images="8" total_nb_images="8" date_last="2011-04-12 00:52:41" max_date_last="2011-04-12 00:52:41" nb_categories="0" url="http://photo.bayral.fr/index.php?/category/2">
25//        <name>2010 12 Photos Noé Loic</name>
26//        <uppercats>2</uppercats>
27//        <global_rank>2</global_rank>
28//        <comment></comment></category>
29//    <category id="3" nb_images="99" total_nb_images="99" date_last="2011-04-12 23:59:28" max_date_last="2011-04-12 23:59:28" nb_categories="0" url="http://photo.bayral.fr/index.php?/category/3">
30//        <name>2010 12 24-25 Noel</name>
31//        <uppercats>3</uppercats>
32//        <global_rank>3</global_rank>
33//        <comment></comment></category>
34//    <category id="5" nb_images="14" total_nb_images="14" date_last="2011-04-13 00:13:06" max_date_last="2011-04-13 00:13:06" nb_categories="0" url="http://photo.bayral.fr/index.php?/category/5">
35//        <name>2010 11 Photos Noé Loic</name>
36//        <uppercats>5</uppercats>
37//        <global_rank>4</global_rank>
38//        <comment></comment></category>
39//    <category id="6" nb_images="45" total_nb_images="45" date_last="2011-04-13 22:59:49" max_date_last="2011-04-13 22:59:49" nb_categories="0" url="http://photo.bayral.fr/index.php?/category/6">
40//        <name>2010 11 23 28 aniversaire Noé 4 ans Famille</name>
41//        <uppercats>6</uppercats>
42//        <global_rank>5</global_rank>
43//        <comment></comment></category></categories>
44//</rsp>
45    [Serializable()]
46    [XmlRoot(ElementName = "category")]
47    public class PwgCategoryProxyResponse
48    {
49        [XmlAttribute(AttributeName = "id")]
50        public Int32 Id { get; set; }
51        [XmlElement(ElementName = "uppercats")]
52        public String UpperCategoryId { get; set; }
53        [XmlElement (ElementName = "name")]
54        public String Name { get; set; }
55        [XmlAttribute(AttributeName = "url")]
56        public String Url { get; set; }
57        [XmlAttribute(AttributeName = "nb_images")]
58        public Int64 ImagesCount { get; set; }
59        [XmlAttribute(AttributeName = "total_nb_images")]
60        public Int64 DeepImagesCount { get; set; }
61        [XmlAttribute(AttributeName = "nb_categories")]
62        public Int64 SubCategoriesCount { get; set; }
63        [XmlAttribute(AttributeName = "max_date_last")]
64        public String LastDate { get; set; }
65    }
66
67    [Serializable()]
68    [XmlRoot(ElementName = "rsp")]
69    public class PwgCategoriesProxyResponse : PwgBaseProxyReponse
70    {
71        [XmlArray("categories")]
72        [XmlArrayItem("category")]
73        public PwgCategoryProxyResponse[] Categories { get; set; }
74    }
75}
Note: See TracBrowser for help on using the repository browser.