The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PodcastConfig.cs 745B

1234567891011121314151617181920212223242526272829
  1. using System.IO;
  2. namespace Teknik.Configuration
  3. {
  4. public class PodcastConfig
  5. {
  6. public bool Enabled { get; set; }
  7. public string Title { get; set; }
  8. public string Description { get; set; }
  9. public int PodcastsToLoad { get; set; }
  10. public int CommentsToLoad { get; set; }
  11. public string PodcastDirectory { get; set; }
  12. public PodcastConfig()
  13. {
  14. SetDefaults();
  15. }
  16. public void SetDefaults()
  17. {
  18. Enabled = true;
  19. Title = string.Empty;
  20. Description = string.Empty;
  21. PodcastsToLoad = 10;
  22. CommentsToLoad = 10;
  23. PodcastDirectory = Directory.GetCurrentDirectory();
  24. }
  25. }
  26. }