2018-06-15 02:57:03 +02:00
|
|
|
|
using System.IO;
|
2016-01-25 07:31:01 +01:00
|
|
|
|
|
|
|
|
|
namespace Teknik.Configuration
|
|
|
|
|
{
|
|
|
|
|
public class PodcastConfig
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
public bool Enabled { get; set; }
|
2016-01-25 07:31:01 +01:00
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public int PodcastsToLoad { get; set; }
|
|
|
|
|
public int CommentsToLoad { get; set; }
|
2016-01-26 00:36:25 +01:00
|
|
|
|
public string PodcastDirectory { get; set; }
|
2016-01-25 07:31:01 +01:00
|
|
|
|
|
|
|
|
|
public PodcastConfig()
|
|
|
|
|
{
|
|
|
|
|
SetDefaults();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetDefaults()
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
Enabled = true;
|
2016-01-25 07:31:01 +01:00
|
|
|
|
Title = string.Empty;
|
|
|
|
|
Description = string.Empty;
|
|
|
|
|
PodcastsToLoad = 10;
|
|
|
|
|
CommentsToLoad = 10;
|
2016-01-26 05:54:53 +01:00
|
|
|
|
PodcastDirectory = Directory.GetCurrentDirectory();
|
2016-01-25 07:31:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|