diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/BotCache.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/BotCache.cs index ec63a1566..7a98ed324 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/BotCache.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/BotCache.cs @@ -38,6 +38,7 @@ namespace ArchiSteamFarm.OfficialPlugins.ItemsMatcher; internal sealed class BotCache : SerializableFile { [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentList LastAnnouncedAssetsForListing { get; private init; } = []; internal string? LastAnnouncedTradeToken { diff --git a/ArchiSteamFarm/Steam/Storage/BotDatabase.cs b/ArchiSteamFarm/Steam/Storage/BotDatabase.cs index 899351ce6..fd7cfbcf8 100644 --- a/ArchiSteamFarm/Steam/Storage/BotDatabase.cs +++ b/ArchiSteamFarm/Steam/Storage/BotDatabase.cs @@ -65,6 +65,7 @@ public sealed class BotDatabase : GenericDatabase { [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet ExtraStorePackages { get; private init; } = []; internal DateTime ExtraStorePackagesRefreshedAt { @@ -82,22 +83,27 @@ public sealed class BotDatabase : GenericDatabase { [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet FarmingBlacklistAppIDs { get; private init; } = []; [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet FarmingPriorityQueueAppIDs { get; private init; } = []; [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ObservableConcurrentDictionary FarmingRiskyIgnoredAppIDs { get; private init; } = new(); [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet FarmingRiskyPrioritizedAppIDs { get; private init; } = []; [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet MatchActivelyBlacklistAppIDs { get; private init; } = []; internal MobileAuthenticator? MobileAuthenticator { @@ -141,6 +147,7 @@ public sealed class BotDatabase : GenericDatabase { [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet TradingBlacklistSteamIDs { get; private init; } = []; [JsonInclude] diff --git a/ArchiSteamFarm/Storage/GlobalDatabase.cs b/ArchiSteamFarm/Storage/GlobalDatabase.cs index c9a3d34bf..4a7af1c40 100644 --- a/ArchiSteamFarm/Storage/GlobalDatabase.cs +++ b/ArchiSteamFarm/Storage/GlobalDatabase.cs @@ -57,10 +57,12 @@ public sealed class GlobalDatabase : GenericDatabase { [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ConcurrentHashSet CachedBadBots { get; private init; } = []; [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal ObservableConcurrentDictionary CardCountsPerGame { get; private init; } = new(); internal uint CellID { @@ -91,6 +93,7 @@ public sealed class GlobalDatabase : GenericDatabase { [JsonDisallowNull] [JsonInclude] + [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] internal InMemoryServerListProvider ServerListProvider { get; private init; } = new(); [JsonInclude]