mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
22 lines
639 B
C#
22 lines
639 B
C#
using System.Collections.Generic;
|
|
|
|
namespace LanMountainDesktop.PluginSdk;
|
|
|
|
public interface IPluginSettingsService
|
|
{
|
|
string PluginId { get; }
|
|
|
|
IComponentSettingsAccessor GetComponentAccessor(string componentId, string? placementId);
|
|
|
|
T LoadComponentSection<T>(string componentId, string? placementId, string sectionId) where T : new();
|
|
|
|
void SaveComponentSection<T>(
|
|
string componentId,
|
|
string? placementId,
|
|
string sectionId,
|
|
T section,
|
|
IReadOnlyCollection<string>? changedKeys = null);
|
|
|
|
void DeleteComponentSection(string componentId, string? placementId, string sectionId);
|
|
}
|