The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }