PageRenderTime 57ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

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