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 | |
---|
11 | [Serializable()] |
---|
12 | [XmlRoot(ElementName = "rsp")] |
---|
13 | public class PwgImageRateProxyResponse : PwgBaseProxyReponse |
---|
14 | { |
---|
15 | [XmlElement("count")] |
---|
16 | public Int32 Count { get; set; } |
---|
17 | [XmlElement("average")] |
---|
18 | public String Average { get; set; } |
---|
19 | [XmlElement("stdev")] |
---|
20 | public String Stdev { get; set; } |
---|
21 | } |
---|
22 | |
---|
23 | [Serializable()] |
---|
24 | [XmlRoot(ElementName = "categorie")] |
---|
25 | public class PwgImageProxyResponse |
---|
26 | { |
---|
27 | [XmlAttribute(AttributeName = "id")] |
---|
28 | public Int32 Id { get; set; } |
---|
29 | [XmlAttribute(AttributeName = "width")] |
---|
30 | public Int32 Width { get; set; } |
---|
31 | [XmlAttribute(AttributeName = "height")] |
---|
32 | public Int32 Height { get; set; } |
---|
33 | [XmlAttribute(AttributeName = "file")] |
---|
34 | public String File { get; set; } |
---|
35 | [XmlAttribute(AttributeName = "tn_url")] |
---|
36 | public String UrlThunb { get; set; } |
---|
37 | [XmlAttribute(AttributeName = "element_url")] |
---|
38 | public String UrlElement { get; set; } |
---|
39 | [XmlAttribute(AttributeName = "high_url")] |
---|
40 | public String UrlHighDef { get; set; } |
---|
41 | [XmlAttribute(AttributeName = "hit")] |
---|
42 | public Int64 Counter { get; set; } |
---|
43 | |
---|
44 | [XmlArray("tags")] |
---|
45 | [XmlArrayItem("tag")] |
---|
46 | public PwgTagProxyResponse[] Tags { get; set; } |
---|
47 | |
---|
48 | [XmlArray("categories")] |
---|
49 | [XmlArrayItem("category")] |
---|
50 | public PwgCategoryProxyResponse[] Categories { get; set; } |
---|
51 | |
---|
52 | } |
---|
53 | |
---|
54 | [Serializable()] |
---|
55 | [XmlRoot(ElementName = "images")] |
---|
56 | public class PwgImageListProxyResponse |
---|
57 | { |
---|
58 | [XmlAttribute("page")] |
---|
59 | public Int32 Page; |
---|
60 | [XmlAttribute("per_page")] |
---|
61 | public Int32 PerPage; |
---|
62 | [XmlAttribute("count")] |
---|
63 | public Int32 Count; |
---|
64 | |
---|
65 | [XmlElement("image", typeof(PwgImageProxyResponse))] |
---|
66 | public PwgImageProxyResponse[] Images { get; set; } |
---|
67 | |
---|
68 | |
---|
69 | } |
---|
70 | |
---|
71 | [Serializable()] |
---|
72 | [XmlRoot(ElementName = "rsp")] |
---|
73 | public class PwgImagesProxyResponse : PwgBaseProxyReponse |
---|
74 | { |
---|
75 | [XmlElement("images")] |
---|
76 | public PwgImageListProxyResponse ImageList { get; set; } |
---|
77 | } |
---|
78 | |
---|
79 | } |
---|