Files
linker/linker.messenger.store.file/updater/UpdaterServerStore.cs
snltty a5cc3c5110 sync
2025-01-02 15:55:00 +08:00

28 lines
649 B
C#

using linker.messenger.updater;
namespace linker.messenger.store.file.updater
{
public sealed class UpdaterServerStore : IUpdaterServerStore
{
public string SecretKey => fileConfig.Data.Server.Updater.SecretKey;
private readonly FileConfig fileConfig;
public UpdaterServerStore(FileConfig fileConfig)
{
this.fileConfig = fileConfig;
}
public void SetSecretKey(string key)
{
fileConfig.Data.Server.Updater.SecretKey = key;
}
public bool Confirm()
{
fileConfig.Data.Update();
return true;
}
}
}