mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-14 07:30:39 +00:00
Avoid serializing default properties in databases
Less data to read/write is always better.
This commit is contained in:
@@ -340,5 +340,15 @@ namespace ArchiSteamFarm {
|
||||
FileSemaphore.Release();
|
||||
}
|
||||
}
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user