Correct outdated database serialization

This commit is contained in:
JustArchi
2020-11-29 18:33:11 +01:00
parent 8ff0ea1bb5
commit 627d7ca371
2 changed files with 4 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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();