Files
Pilz/Pilz.Configuration/ISettings.cs
Pilzinsel64 44ab301c24 refactor settings load/save
- load using LINUQ
- load on child settings on demond
- prevent error when plugin has been removed
- prevent settings loose when plugin has been removed
2024-11-28 07:23:29 +01:00

13 lines
372 B
C#

using Newtonsoft.Json;
using System.Collections.Generic;
namespace Pilz.Configuration;
public interface ISettings
{
IReadOnlyCollection<IChildSettings> Childs { get; }
T Get<T>() where T : IChildSettings, ISettingsIdentifier;
void Reset();
string Save(JsonSerializerSettings serializer);
bool Load(JsonSerializerSettings serializer, string raw);
}