From 7a13895429f3161c0e32736cd3086c515e42464c Mon Sep 17 00:00:00 2001 From: Archi Date: Fri, 23 Feb 2024 02:49:03 +0100 Subject: [PATCH] Fix false positives --- .../Data/SubmitRequest.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/Data/SubmitRequest.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/Data/SubmitRequest.cs index 5a721bfcf..52163024e 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/Data/SubmitRequest.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/Data/SubmitRequest.cs @@ -32,21 +32,27 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper.Data; internal sealed class SubmitRequest { private readonly ulong SteamID; +#pragma warning disable CA1822 // We can't make it static, STJ doesn't serialize it otherwise [JsonInclude] [JsonPropertyName("guid")] private string Guid => ASF.GlobalDatabase?.Identifier.ToString("N") ?? throw new InvalidOperationException(nameof(ASF.GlobalDatabase.Identifier)); +#pragma warning restore CA1822 // We can't make it static, STJ doesn't serialize it otherwise [JsonInclude] [JsonPropertyName("steamid")] private string SteamIDText => new SteamID(SteamID).Render(); +#pragma warning disable CA1822 // We can't make it static, STJ doesn't serialize it otherwise [JsonInclude] [JsonPropertyName("token")] private string Token => SharedInfo.Token; +#pragma warning restore CA1822 // We can't make it static, STJ doesn't serialize it otherwise +#pragma warning disable CA1822 // We can't make it static, STJ doesn't serialize it otherwise [JsonInclude] [JsonPropertyName("v")] private byte Version => SharedInfo.ApiVersion; +#pragma warning restore CA1822 // We can't make it static, STJ doesn't serialize it otherwise [JsonInclude] [JsonPropertyName("apps")]