2025-03-13 12:53:31 -04:00
|
|
|
// I hereby waive this project under the public domain - see UNLICENSE for details.
|
2025-03-12 14:28:36 -04:00
|
|
|
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>
|
2025-03-12 14:28:36 -04:00
|
|
|
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" };
|
2025-03-12 14:28:36 -04:00
|
|
|
}
|