From bc2cac5c0825e6fbdc0e410f5feab3325ad0625f Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 3 Jun 2020 16:48:04 +0200 Subject: [PATCH] Closes #1820 Those properties started being serialized the moment we opened them as part of PublicAPI, we do not intend to serialize them when sending to Steam. --- ArchiSteamFarm/Json/Steam.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ArchiSteamFarm/Json/Steam.cs b/ArchiSteamFarm/Json/Steam.cs index 41f6aa5a4..9a3236432 100644 --- a/ArchiSteamFarm/Json/Steam.cs +++ b/ArchiSteamFarm/Json/Steam.cs @@ -41,42 +41,54 @@ namespace ArchiSteamFarm.Json { [PublicAPI] public const ulong SteamCommunityContextID = 6; + [JsonIgnore] [PublicAPI] public ImmutableDictionary AdditionalProperties { get; internal set; } + [JsonIgnore] [PublicAPI] public uint Amount { get; internal set; } [JsonProperty(PropertyName = "appid", Required = Required.DisallowNull)] public uint AppID { get; private set; } + [JsonIgnore] [PublicAPI] public ulong AssetID { get; private set; } + [JsonIgnore] [PublicAPI] public ulong ClassID { get; private set; } + [JsonIgnore] [PublicAPI] public ulong ContextID { get; private set; } + [JsonIgnore] [PublicAPI] public ulong InstanceID { get; private set; } + [JsonIgnore] [PublicAPI] public bool Marketable { get; internal set; } + [JsonIgnore] [PublicAPI] public ERarity Rarity { get; internal set; } + [JsonIgnore] [PublicAPI] public uint RealAppID { get; internal set; } + [JsonIgnore] [PublicAPI] public ImmutableHashSet Tags { get; internal set; } + [JsonIgnore] [PublicAPI] public bool Tradable { get; internal set; } + [JsonIgnore] [PublicAPI] public EType Type { get; internal set; } @@ -390,6 +402,7 @@ namespace ArchiSteamFarm.Json { [SuppressMessage("ReSharper", "ClassCannotBeInstantiated")] public class NumberResponse { + [JsonIgnore] [PublicAPI] public bool Success { get; private set; }