StaggerPost/Config.cs

25 lines
877 B
C#
Raw Normal View History

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