PageRenderTime 33ms CodeModel.GetById 25ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/DotNetSlave.BusinessLogic/Json/JsonPost.cs

#
C# | 68 lines | 18 code | 13 blank | 37 comment | 0 complexity | d00ede9d13980922786b35ab616f209a MD5 | raw file
 1
 2
 3namespace BlogEngine.Core.Json
 4{
 5    using System;
 6
 7    /// <summary>
 8    /// Wrapper aroung Post
 9    /// used to show post list in the admin
10    /// </summary>
11    public class JsonPost
12    {
13        /// <summary>
14        /// Post ID
15        /// </summary>
16        public Guid Id { get; set; }
17        
18        /// <summary>
19        /// Post title
20        /// </summary>
21        public string Title { get; set; }
22        
23        /// <summary>
24        /// Post author
25        /// </summary>
26        public string Author { get; set; }
27
28        /// <summary>
29        ///     Gets or sets the date portion of published date
30        /// </summary>
31        public string Date { get; set; }
32
33        /// <summary>
34        ///     Gets or sets the time portion of published date
35        /// </summary>
36        public string Time { get; set; }
37
38        /// <summary>
39        /// Comma separated list of post categories
40        /// </summary>
41        public string Categories { get; set; }
42
43        /// <summary>
44        /// Comma separated list of post tags
45        /// </summary>
46        public string Tags { get; set; }
47
48        /// <summary>
49        /// Comment counts for the post
50        /// </summary>
51        public string Comments { get; set; }
52
53        /// <summary>
54        /// Gets or sets post status
55        /// </summary>
56        public bool IsPublished { get; set; }
57
58        /// <summary>
59        /// If the current user can delete this page.
60        /// </summary>
61        public bool CanUserDelete { get; set; }
62
63        /// <summary>
64        /// If the current user can edit this page.
65        /// </summary>
66        public bool CanUserEdit { get; set; }
67    }
68}