mirror of
https://github.com/tonytins/staggerpost.git
synced 2025-07-06 06:40:32 -04:00
Switch to Json (broken)
This commit is contained in:
parent
5cccb9a4b2
commit
ac1d3862c6
8 changed files with 213 additions and 37 deletions
|
@ -10,15 +10,15 @@ public class Config
|
|||
/// <summary>
|
||||
/// Gets or sets the name of the schedule file.
|
||||
/// </summary>
|
||||
public string? File { get; set; }
|
||||
public string File { get; set; } = "schedule.txt";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the directory path where the schedule file is stored.
|
||||
/// </summary>
|
||||
public string? Path { get; set; }
|
||||
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 TomlArray? Topics { get; set; }
|
||||
public IList<string> Topics { get; set; } = new[] { "Games", "Politics", "Research", "Technology" };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue