source: extensions/PiwigoLib/PiwigoLib/DTO/PwgImage.cs @ 11872

Last change on this file since 11872 was 11872, checked in by bayral, 13 years ago
File size: 2.9 KB
Line 
1using System;
2using System.Collections.Generic;
3
4
5namespace Com.Piwigo.Lib.DTO
6{
7
8    public class PwgImage
9    {
10        public Int32 Id { get; set; }
11        public Int32 Width { get; set; }
12        public Int32 Height { get; set; }
13        public String File { get; set; }
14        public Uri UrlThunb { get; set; }
15        public Uri UrlElement { get; set; }
16        public Uri UrlHighDef { get; set; }
17        public Int64 Counter { get; set; }
18        public DateTime CreatingDate { get; set; }
19        public DateTime AvailableDate { get; set; }
20
21        public List<PwgTag> Tags { get; set; }
22
23        public List<PwgCategory> Categories { get; set; }
24    }
25
26    //<image
27    //tn_ext="jpg" author="bayral" filesize="62" date_metadata_update="2011-04-12"
28    //has_high="true" high_filesize="1667" level="0" md5sum="198c02a16d5f69c3def90908b33089c3" added_by="1"
29    //<name>P1120275</name>
30    //<rates count="0" average=""/>
31    //<comment_post author="bayral" key="1312204731.6:2:6f7f43b81bcf86540216c6f39b9122a6"/>
32    //<comments page="0" per_page="10" count="1" nb_comments="1">
33    //<comment id="1" date="2011-08-01 13:37:59">
34    //  <author>bayral</author>
35    //  <content>test[b] demod[/b]</content>
36    //</comment>
37    //</comments>
38    //</image>
39    public class PwgImageInfo : PwgImage
40    {
41        public String ExtThumbail { get; set; }
42        public String Author { get; set; }
43        public Int64  ImageFileSize { get; set; }
44        public DateTime DateupdateMetaData { get; set; }
45        public Boolean  hasHighDef { get; set; }
46        public Int64 HighDefFileSize { get; set; }
47        public Int32 ConfidentialLevel { get; set; }
48        public String mdSum { get; set; }
49        public Int32 UserIdAddedBy { get; set; }
50        public String Name { get; set; }
51
52        public PwgImageRate ImageRate { get; set; }
53        public PwgCommentPage ImageComments { get; set; }
54        public PwgPostCommentSecurityInfo PostCommenSecurityData { get; set; }
55    }
56
57    public class PwgPostCommentSecurityInfo
58    {
59        public String Author { get; set; }
60        public String AllowPostKey { get; set; }
61    }
62
63    public class PwgCommentPage : List<PwgComment>
64    {
65        public Int32 Page { get; set; }
66        public Int32 PerPage { get; set; }
67        public Int32 CountOf { get; set; }
68        public Int32 TotalCommentNumber { get; set; }
69    }
70
71    public class PwgComment
72    {
73        public Int32 Id { get; set; }
74        public DateTime CommentDate { get; set; }
75        public String Author { get; set; }
76        public String Content { get; set; }
77    }
78
79    public class PwgImageRate
80    {
81        public Int32 Count { get; set; }
82        public Double Average { get; set; }
83        public Double Stdev { get; set; }
84    }
85
86    public class PwgImageAdded
87    {
88        public Int32 Id { get; set; }
89        public Uri UrlElement { get; set; }
90    }
91
92}
Note: See TracBrowser for help on using the repository browser.