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