- load using LINUQ - load on child settings on demond - prevent error when plugin has been removed - prevent settings loose when plugin has been removed
13 lines
372 B
C#
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);
|
|
} |