mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Correct outdated database serialization
This commit is contained in:
@@ -201,12 +201,12 @@ namespace ArchiSteamFarm {
|
||||
private async void OnObjectModified(object? sender, EventArgs e) => await Save().ConfigureAwait(false);
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
public bool ShouldSerializeBackingLoginKey() => !string.IsNullOrEmpty(BackingLoginKey);
|
||||
public bool ShouldSerializeBackingMobileAuthenticator() => BackingMobileAuthenticator != null;
|
||||
public bool ShouldSerializeBlacklistedFromTradesSteamIDs() => BlacklistedFromTradesSteamIDs.Count > 0;
|
||||
public bool ShouldSerializeGamesToRedeemInBackground() => HasGamesToRedeemInBackground;
|
||||
public bool ShouldSerializeIdlingBlacklistedAppIDs() => IdlingBlacklistedAppIDs.Count > 0;
|
||||
public bool ShouldSerializeIdlingPriorityAppIDs() => IdlingPriorityAppIDs.Count > 0;
|
||||
public bool ShouldSerializeLoginKey() => !string.IsNullOrEmpty(LoginKey);
|
||||
public bool ShouldSerializeMobileAuthenticator() => MobileAuthenticator != null;
|
||||
|
||||
// ReSharper restore UnusedMember.Global
|
||||
}
|
||||
|
||||
@@ -224,7 +224,8 @@ namespace ArchiSteamFarm {
|
||||
private async void OnObjectModified(object? sender, EventArgs e) => await Save().ConfigureAwait(false);
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
public bool ShouldSerializeCellID() => CellID != 0;
|
||||
public bool ShouldSerializeBackingCellID() => BackingCellID != 0;
|
||||
public bool ShouldSerializePackagesAccessTokens() => !PackagesAccessTokens.IsEmpty;
|
||||
public bool ShouldSerializePackagesData() => !PackagesData.IsEmpty;
|
||||
public bool ShouldSerializeServerListProvider() => ServerListProvider.ShouldSerializeServerRecords();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user