source: extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgImagesProxyResponse.cs @ 7149

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

Piwigolib is now modify for mask the implementation of proxy.
Add start version of piwigo WPF

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