mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
34 lines
887 B
C#
34 lines
887 B
C#
|
|
using System.Text.Json;
|
||
|
|
|
||
|
|
namespace LanMountainDesktop.PluginIsolation.Contracts;
|
||
|
|
|
||
|
|
public sealed record PluginSettingsSnapshotRequest(
|
||
|
|
string Scope,
|
||
|
|
string? SectionId = null,
|
||
|
|
string? ComponentInstanceId = null);
|
||
|
|
|
||
|
|
public sealed record PluginSettingsSnapshotResponse(
|
||
|
|
string Scope,
|
||
|
|
JsonElement Snapshot,
|
||
|
|
string? ETag = null);
|
||
|
|
|
||
|
|
public sealed record PluginSettingsWriteRequest(
|
||
|
|
string Scope,
|
||
|
|
JsonElement Value,
|
||
|
|
string? SectionId = null,
|
||
|
|
string? ComponentInstanceId = null,
|
||
|
|
string? ETag = null);
|
||
|
|
|
||
|
|
public sealed record PluginSettingsWriteResponse(
|
||
|
|
bool Accepted,
|
||
|
|
string? ETag = null,
|
||
|
|
string? ErrorCode = null,
|
||
|
|
string? ErrorMessage = null);
|
||
|
|
|
||
|
|
public sealed record PluginSettingsChangedNotification(
|
||
|
|
string Scope,
|
||
|
|
JsonElement Value,
|
||
|
|
string? SectionId = null,
|
||
|
|
string? ComponentInstanceId = null,
|
||
|
|
string? ETag = null);
|