mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-18 02:09:37 -06:00
53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using Newtonsoft.Json;
|
|
using System.IO;
|
|
using System.Runtime;
|
|
using System;
|
|
using Serilog;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace TweaksAndThings;
|
|
|
|
public class Settings
|
|
{
|
|
|
|
public Settings()
|
|
{}
|
|
|
|
public Settings(
|
|
WebhookSettings webhookSettings,
|
|
List<WebhookSettings> webhookSettingsList,
|
|
bool handBrakeAndAirTagModifiers
|
|
)
|
|
{
|
|
this.WebhookSettingsList = webhookSettingsList;
|
|
this.HandBrakeAndAirTagModifiers = handBrakeAndAirTagModifiers;
|
|
}
|
|
|
|
public List<WebhookSettings> WebhookSettingsList;
|
|
public bool HandBrakeAndAirTagModifiers;
|
|
|
|
internal void AddAnotherRow()
|
|
{
|
|
//if (!string.IsNullOrEmpty(WebhookSettingsList.Last().WebhookUrl)) WebhookSettingsList.Add(new());
|
|
}
|
|
}
|
|
|
|
public class WebhookSettings
|
|
{
|
|
public WebhookSettings() { }
|
|
public WebhookSettings(
|
|
bool webhookEnabled,
|
|
string railroadMark,
|
|
string webhookUrl
|
|
)
|
|
{
|
|
this.WebhookEnabled = webhookEnabled;
|
|
this.RailroadMark = railroadMark;
|
|
this.WebhookUrl = webhookUrl;
|
|
}
|
|
|
|
public bool WebhookEnabled = false;
|
|
public string RailroadMark = string.Empty;
|
|
public string WebhookUrl = string.Empty;
|
|
} |