29 lines
1.9 KiB
C#
29 lines
1.9 KiB
C#
using FinlyticCore.Models.Settings;
|
|
|
|
namespace FinlyticAssets.Util;
|
|
|
|
public static class SettingKeys
|
|
{
|
|
// --- Logging-Kanäle ---
|
|
public static readonly SettingKey<bool> AssetsChannel = new("Logging.Channel.Assets", true);
|
|
public static readonly SettingKey<bool> MqttChannel = new("Logging.Channel.MQTT", true);
|
|
public static readonly SettingKey<bool> HealthPingChannel = new("Logging.Channel.Health", true);
|
|
public static readonly SettingKey<bool> TradeRepublicChannel = new("Logging.Channel.TradeRepublic", true);
|
|
|
|
// --- Trade Republic Connection ---
|
|
public static readonly SettingKey<int> TradeRepublicWsReconnectInterval = new("TradeRepublic.WsReconnectIntervalSeconds", 5);
|
|
public static readonly SettingKey<int> TradeRepublicWsTimeout = new("TradeRepublic.WsTimeoutSeconds", 15);
|
|
|
|
// --- Asset Scanning Config ---
|
|
public static readonly SettingKey<bool> ScannerEnableAutoScan = new("Scanner.EnableAutoScan", true);
|
|
public static readonly SettingKey<string> ScannerCurrentScanningType = new("Scanner.CurrentScanningType", "Stock");
|
|
public static readonly SettingKey<int> ScannerCurrentScanningPage = new("Scanner.CurrentScanningPage", 0);
|
|
public static readonly SettingKey<bool> ScannerFinishedInitialScan = new("Scanner.FinishedInitialScan", false);
|
|
public static readonly SettingKey<int> ScannerBatchDelay = new("Scanner.BatchAssetUpdateDelay", 0);
|
|
public static readonly SettingKey<int> ScannerTypeDelay = new("Scanner.AssetUpdateTypeDelay", 0);
|
|
public static readonly SettingKey<int> ScannerInitBatchDelay = new("Scanner.InitBatchAssetUpdateDelay", 0);
|
|
public static readonly SettingKey<int> ScannerInitTypeDelay = new("Scanner.InitAssetUpdateTypeDelay", 0);
|
|
public static readonly SettingKey<int> ScannerMaxPageSize = new("Scanner.TradeRepublicMaxRequestPageSize", 50);
|
|
public static readonly SettingKey<int> ScannerCycleDelayMinutes = new("Scanner.CycleDelayMinutes", 1440);
|
|
}
|