PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/DotNetSlave.BusinessLogic/API/BlogML/BaseReader.cs

#
C# | 73 lines | 31 code | 12 blank | 30 comment | 0 complexity | 36b1cc8acb4b08684b4cd6cade444e91 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. namespace BlogEngine.Core.API.BlogML
  2. {
  3. /// <summary>
  4. /// The base reader.
  5. /// </summary>
  6. public class BaseReader
  7. {
  8. #region Constructors and Destructors
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref = "BaseReader" /> class.
  11. /// </summary>
  12. public BaseReader()
  13. {
  14. this.Author = string.Empty;
  15. this.RemoveDuplicates = false;
  16. this.ApprovedCommentsOnly = false;
  17. this.Message = string.Empty;
  18. }
  19. #endregion
  20. #region Properties
  21. /// <summary>
  22. /// Gets or sets a value indicating whether ApprovedCommentsOnly.
  23. /// </summary>
  24. public bool ApprovedCommentsOnly { get; set; }
  25. /// <summary>
  26. /// Gets or sets Author.
  27. /// </summary>
  28. public string Author { get; set; }
  29. /// <summary>
  30. /// Gets or sets Message.
  31. /// </summary>
  32. public string Message { get; set; }
  33. /// <summary>
  34. /// Gets or sets a value indicating whether RemoveDuplicates.
  35. /// </summary>
  36. public bool RemoveDuplicates { get; set; }
  37. #endregion
  38. #region Public Methods
  39. /// <summary>
  40. /// Imports this instance.
  41. /// </summary>
  42. /// <returns>
  43. /// Always returns false.
  44. /// </returns>
  45. public virtual bool Import()
  46. {
  47. return false;
  48. }
  49. /// <summary>
  50. /// Validates this instance.
  51. /// </summary>
  52. /// <returns>
  53. /// Always returns false.
  54. /// </returns>
  55. public virtual bool Validate()
  56. {
  57. return false;
  58. }
  59. #endregion
  60. }
  61. }