Ignore:
Timestamp:
Aug 1, 2011, 5:47:03 PM (13 years ago)
Author:
bayral
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgImagesProxyResponse.cs

    r7160 r11872  
    88namespace Com.Piwigo.Lib.Proxy.Response
    99{
     10    [Serializable()]
     11    [XmlRoot(ElementName = "rsp")]
     12    public class PwgAddSimpleImageProxyResponse : PwgBaseProxyReponse
     13    {
     14        [XmlElement("image_id")]
     15        public Int32 Id { get; set; }
     16        [XmlElement("url")]
     17        public String UrlImage { get; set; }
     18    }
    1019
    1120    [Serializable()]
     
    2332    [Serializable()]
    2433    [XmlRoot(ElementName = "categorie")]
    25     public class PwgImageProxyResponse
     34    public class PwgImageProxyResponse 
    2635    {
    2736        [XmlAttribute(AttributeName = "id")]
     
    4150        [XmlAttribute(AttributeName = "hit")]
    4251        public Int64 Counter { get; set; }
     52        [XmlAttribute(AttributeName = "date_creation")]
     53        public String CreatingDate { get; set; }
     54        [XmlAttribute(AttributeName = "date_available")]
     55        public String AvailableDate { get; set; }
    4356
    4457        [XmlArray("tags")]
     
    5063        public PwgCategoryProxyResponse[] Categories { get; set; }
    5164
     65    }
     66
     67    [Serializable()]
     68    [XmlRoot(ElementName = "rsp")]
     69    public class PwgImageInfoProxyResponse : PwgBaseProxyReponse
     70    {
     71        [XmlElement("image")]
     72        public PwgImageInfoImageProxyResponse ImageInfo { get; set; }
     73    }
     74
     75    [Serializable()]
     76    [XmlRoot(ElementName = "image")]
     77    public class PwgImageInfoImageProxyResponse
     78    {
     79        [XmlAttribute(AttributeName = "id")]
     80        public Int32 Id { get; set; }
     81        [XmlAttribute(AttributeName = "width")]
     82        public Int32 Width { get; set; }
     83        [XmlAttribute(AttributeName = "height")]
     84        public Int32 Height { get; set; }
     85        [XmlAttribute(AttributeName = "file")]
     86        public String File { get; set; }
     87        [XmlAttribute(AttributeName = "tn_url")]
     88        public String UrlThunb { get; set; }
     89        [XmlAttribute(AttributeName = "element_url")]
     90        public String UrlElement { get; set; }
     91        [XmlAttribute(AttributeName = "high_url")]
     92        public String UrlHighDef { get; set; }
     93        [XmlAttribute(AttributeName = "hit")]
     94        public Int64 Counter { get; set; }
     95        [XmlAttribute(AttributeName = "date_creation")]
     96        public String CreatingDate { get; set; }
     97        [XmlAttribute(AttributeName = "date_available")]
     98        public String AvailableDate { get; set; }
     99        [XmlAttribute(AttributeName = "tn_ext")]
     100        public String ExtThumbail { get; set; }
     101        [XmlAttribute(AttributeName = "author")]
     102        public String Author { get; set; }
     103        [XmlAttribute(AttributeName = "filesize")]
     104        public Int64 ImageFileSize { get; set; }
     105        [XmlAttribute(AttributeName = "date_metadata_update")]
     106        public String DateUpdateMetaData { get; set; }
     107        [XmlAttribute(AttributeName = "has_high")]
     108        public Boolean hasHighDef { get; set; }
     109        [XmlAttribute(AttributeName = "high_filesize")]
     110        public Int64 HighDefFileSize { get; set; }
     111        [XmlAttribute(AttributeName = "level")]
     112        public Int32 ConfidentialLevel { get; set; }
     113        [XmlAttribute(AttributeName = "md5sum")]
     114        public String mdSum { get; set; }
     115        [XmlAttribute(AttributeName = "added_by")]
     116        public Int32 UserIdAddedBy { get; set; }
     117
     118        [XmlElement("name")]
     119        public String Name { get; set; }
     120
     121        [XmlArray("tags")]
     122        [XmlArrayItem("tag")]
     123        public PwgTagProxyResponse[] Tags { get; set; }
     124
     125        [XmlArray("categories")]
     126        [XmlArrayItem("category")]
     127        public PwgCategoryProxyResponse[] Categories { get; set; }
     128
     129        [XmlElement("rates")]
     130        public PwgImageRateProxyResponse ImageRate { get; set; }
     131       
     132        [XmlElement("comments")]
     133        public PwgCommentPageProxyResponse ImageComments { get; set; }
     134
     135        [XmlElement("comment_post")]
     136        public PwgPostCommentSecurityInfo PostCommenSecurityData { get; set; }
     137    }
     138
     139    [Serializable()]
     140    [XmlRoot(ElementName = "comment_post")]
     141    public class PwgPostCommentSecurityInfoProxyResponse
     142    {
     143        [XmlAttribute(AttributeName = "author")]
     144        public String Author { get; set; }
     145        [XmlAttribute(AttributeName = "key")]
     146        public String AllowPostKey { get; set; }
     147    }
     148
     149    [Serializable()]
     150    [XmlRoot(ElementName = "comments")]
     151    public class PwgCommentPageProxyResponse
     152    {
     153        [XmlAttribute("page")]
     154        public Int32 Page { get; set; }
     155        [XmlAttribute("per_page")]
     156        public Int32 PerPage { get; set; }
     157        [XmlAttribute("count")]
     158        public Int32 CountOf { get; set; }
     159        [XmlAttribute("nb_comments")]
     160        public Int32 TotalCommentNumber { get; set; }
     161
     162        [XmlElement("comment", typeof(PwgCommentProxyResponse))]
     163        public PwgCommentProxyResponse[] Comments { get; set; }
     164    }
     165
     166    [Serializable()]
     167    [XmlRoot(ElementName = "comments")]
     168    public class PwgCommentProxyResponse
     169    {
     170        [XmlAttribute("id")]
     171        public Int32 Id { get; set; }
     172        [XmlAttribute("date")]
     173        public DateTime CommentDate { get; set; }
     174        [XmlAttribute("author")]
     175        public String Author { get; set; }
     176        [XmlAttribute("content")]
     177        public String Content { get; set; }
    52178    }
    53179
Note: See TracChangeset for help on using the changeset viewer.