2023-07-23 22:51:22 -07:00
|
|
|
using Newsbot.Collector.Domain.Models.Config;
|
|
|
|
|
2023-02-14 17:51:22 -08:00
|
|
|
namespace Newsbot.Collector.Domain.Models;
|
|
|
|
|
|
|
|
public class ConfigModel
|
|
|
|
{
|
2023-07-23 22:51:22 -07:00
|
|
|
public ConnectionStrings? ConnectionStrings { get; set; }
|
|
|
|
public RedditConfig? Reddit { get; set; }
|
|
|
|
public YoutubeConfig? Youtube { get; set; }
|
|
|
|
public TwitchConfig? Twitch { get; set; }
|
|
|
|
public BasicSourceConfig? FinalFantasyXiv { get; set; }
|
|
|
|
public BasicSourceConfig? Rss { get; set; }
|
|
|
|
public BasicSourceConfig? CodeProjects { get; set; }
|
|
|
|
public NotificationsConfig? Notifications { get; set; }
|
|
|
|
public bool EnableSwagger { get; set; }
|
|
|
|
public bool RunDatabaseMigrationsOnStartup { get; set; }
|
|
|
|
public List<string>? ApiKeys { get; set; }
|
|
|
|
public JwtSettings? JwtSettings { get; set; }
|
2023-02-14 17:51:22 -08:00
|
|
|
}
|
|
|
|
|
2023-07-23 22:51:22 -07:00
|
|
|
public class RedditConfig
|
2023-02-14 17:51:22 -08:00
|
|
|
{
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
public bool PullHot { get; set; }
|
|
|
|
public bool PullNsfw { get; set; }
|
|
|
|
public bool PullTop { get; set; }
|
2023-02-26 09:40:04 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class ConnectionStrings
|
|
|
|
{
|
2023-07-23 22:51:22 -07:00
|
|
|
public string? Database { get; set; }
|
|
|
|
public string? OpenTelemetry { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class BasicSourceConfig
|
|
|
|
{
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class YoutubeConfig
|
|
|
|
{
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
public bool Debug { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class TwitchConfig
|
|
|
|
{
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
public string? ClientId { get; set; }
|
|
|
|
public string? ClientSecret { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class NotificationsConfig
|
|
|
|
{
|
|
|
|
public BasicSourceConfig? Discord { get; set; }
|
|
|
|
}
|