PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 6ms 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
 1namespace BlogEngine.Core.API.BlogML
 2{
 3    /// <summary>
 4    /// The base reader.
 5    /// </summary>
 6    public class BaseReader
 7    {
 8        #region Constructors and Destructors
 9
10        /// <summary>
11        ///     Initializes a new instance of the <see cref = "BaseReader" /> class.
12        /// </summary>
13        public BaseReader()
14        {
15            this.Author = string.Empty;
16            this.RemoveDuplicates = false;
17            this.ApprovedCommentsOnly = false;
18            this.Message = string.Empty;
19        }
20
21        #endregion
22
23        #region Properties
24
25        /// <summary>
26        ///     Gets or sets a value indicating whether ApprovedCommentsOnly.
27        /// </summary>
28        public bool ApprovedCommentsOnly { get; set; }
29
30        /// <summary>
31        ///     Gets or sets Author.
32        /// </summary>
33        public string Author { get; set; }
34
35        /// <summary>
36        ///     Gets or sets Message.
37        /// </summary>
38        public string Message { get; set; }
39
40        /// <summary>
41        ///     Gets or sets a value indicating whether RemoveDuplicates.
42        /// </summary>
43        public bool RemoveDuplicates { get; set; }
44
45        #endregion
46
47        #region Public Methods
48
49        /// <summary>
50        /// Imports this instance.
51        /// </summary>
52        /// <returns>
53        /// Always returns false.
54        /// </returns>
55        public virtual bool Import()
56        {
57            return false;
58        }
59
60        /// <summary>
61        /// Validates this instance.
62        /// </summary>
63        /// <returns>
64        /// Always returns false.
65        /// </returns>
66        public virtual bool Validate()
67        {
68            return false;
69        }
70
71        #endregion
72    }
73}