2018-06-15 02:57:03 +02:00
|
|
|
|
namespace Teknik.Configuration
|
2015-12-21 09:58:09 +01:00
|
|
|
|
{
|
|
|
|
|
public class BlogConfig
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
public bool Enabled { get; set; }
|
2015-12-21 09:58:09 +01:00
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public int PostsToLoad { get; set; }
|
|
|
|
|
public int CommentsToLoad { get; set; }
|
2016-01-30 01:16:04 +01:00
|
|
|
|
public int ServerBlogId { get; set; }
|
2015-12-21 09:58:09 +01:00
|
|
|
|
|
|
|
|
|
public BlogConfig()
|
|
|
|
|
{
|
|
|
|
|
SetDefaults();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetDefaults()
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
Enabled = true;
|
2015-12-21 09:58:09 +01:00
|
|
|
|
Title = string.Empty;
|
|
|
|
|
Description = string.Empty;
|
|
|
|
|
PostsToLoad = 10;
|
|
|
|
|
CommentsToLoad = 10;
|
2016-01-30 01:16:04 +01:00
|
|
|
|
ServerBlogId = 1;
|
2015-12-21 09:58:09 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|