StaggerPost/Config.cs
Tony Bark 2dd63ccba0 Fixed JSON error
- If JSON file doesn't exist, write one that does and add brackets.
- Trim any white space in the values
2025-03-16 12:58:46 -04:00

24 lines
878 B
C#

// I hereby waive this project under the public domain - see UNLICENSE for details.
namespace PublishTimes;
/// <summary>
/// Represents the configuration settings for exporting a schedule,
/// including file name, directory path, and available topics.
/// </summary>
public class Config
{
/// <summary>
/// Gets or sets the name of the schedule file.
/// </summary>
public string File { get; set; } = "schedule.json";
/// <summary>
/// Gets or sets the directory path where the schedule file is stored.
/// </summary>
public string Path { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
/// <summary>
/// Gets or sets the list of available topics from the configuration file.
/// </summary>
public IList<string> Topics { get; set; } = new[] { "Games", "Politics", "Research", "Technology" };
}