diff --git a/.editorconfig b/.editorconfig index f331152e0..d24d3cb21 100644 --- a/.editorconfig +++ b/.editorconfig @@ -111,7 +111,6 @@ dotnet_diagnostic.ca1028.severity = silent dotnet_diagnostic.ca1031.severity = silent # TODO - one at a time -dotnet_diagnostic.ca1044.severity = silent dotnet_diagnostic.ca1054.severity = silent dotnet_diagnostic.ca1062.severity = silent dotnet_diagnostic.ca1063.severity = silent diff --git a/ArchiSteamFarm/BotConfig.cs b/ArchiSteamFarm/BotConfig.cs index f63160104..b809e60da 100644 --- a/ArchiSteamFarm/BotConfig.cs +++ b/ArchiSteamFarm/BotConfig.cs @@ -205,7 +205,7 @@ namespace ArchiSteamFarm { [JsonProperty] public string? SteamLogin { - internal get => BackingSteamLogin; + get => BackingSteamLogin; set { IsSteamLoginSet = true; @@ -218,7 +218,7 @@ namespace ArchiSteamFarm { [JsonProperty] public string? SteamParentalCode { - internal get => BackingSteamParentalCode; + get => BackingSteamParentalCode; set { IsSteamParentalCodeSet = true; @@ -228,7 +228,7 @@ namespace ArchiSteamFarm { [JsonProperty] public string? SteamPassword { - internal get => BackingSteamPassword; + get => BackingSteamPassword; set { IsSteamPasswordSet = true; diff --git a/ArchiSteamFarm/IPC/Requests/TwoFactorAuthenticationConfirmationsRequest.cs b/ArchiSteamFarm/IPC/Requests/TwoFactorAuthenticationConfirmationsRequest.cs index 30852ce9a..2debfb340 100644 --- a/ArchiSteamFarm/IPC/Requests/TwoFactorAuthenticationConfirmationsRequest.cs +++ b/ArchiSteamFarm/IPC/Requests/TwoFactorAuthenticationConfirmationsRequest.cs @@ -24,6 +24,7 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.Linq; using ArchiSteamFarm.Localization; using Newtonsoft.Json; @@ -53,6 +54,7 @@ namespace ArchiSteamFarm.IPC.Requests { /// [JsonProperty(PropertyName = SharedInfo.UlongCompatibilityStringPrefix + nameof(AcceptedCreatorIDs), Required = Required.DisallowNull)] public ImmutableHashSet SAcceptedCreatorIDs { + get => AcceptedCreatorIDs.Select(creatorID => creatorID.ToString(CultureInfo.InvariantCulture)).ToImmutableHashSet(); set { if (value == null) { throw new ArgumentNullException(nameof(value));