2026-03-13 09:10:00 +08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
namespace LanMountainDesktop.AirAppSdk;
|
2026-03-13 09:10:00 +08:00
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
public interface IAirAppSettingsService
|
2026-03-13 09:10:00 +08:00
|
|
|
{
|
2026-08-11 23:03:55 +08:00
|
|
|
string AirAppId { get; }
|
2026-03-13 09:10:00 +08:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|