mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Resolve CA1823
This commit is contained in:
parent
4a91b997a2
commit
1661cf4be9
2 changed files with 9 additions and 14 deletions
|
@ -111,7 +111,6 @@ dotnet_diagnostic.ca1028.severity = silent
|
|||
dotnet_diagnostic.ca1031.severity = silent
|
||||
|
||||
# TODO - one at a time
|
||||
dotnet_diagnostic.ca1823.severity = silent
|
||||
dotnet_diagnostic.ca2000.severity = silent
|
||||
dotnet_diagnostic.ca2002.severity = silent
|
||||
dotnet_diagnostic.ca3003.severity = silent
|
||||
|
|
|
@ -28,30 +28,26 @@ using SteamKit2;
|
|||
|
||||
namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper {
|
||||
internal sealed class RequestData {
|
||||
[JsonProperty(PropertyName = "guid", Required = Required.Always)]
|
||||
private static string Guid => ASF.GlobalDatabase?.Identifier.ToString("N") ?? throw new InvalidOperationException(nameof(ASF.GlobalDatabase.Identifier));
|
||||
|
||||
[JsonProperty(PropertyName = "token", Required = Required.Always)]
|
||||
private static string Token => SharedInfo.Token;
|
||||
|
||||
[JsonProperty(PropertyName = "v", Required = Required.Always)]
|
||||
private static byte Version => SharedInfo.ApiVersion;
|
||||
|
||||
[JsonProperty(PropertyName = "apps", Required = Required.Always)]
|
||||
private readonly ImmutableDictionary<string, string> Apps;
|
||||
|
||||
[JsonProperty(PropertyName = "depots", Required = Required.Always)]
|
||||
private readonly ImmutableDictionary<string, string> Depots;
|
||||
|
||||
[JsonProperty(PropertyName = "guid", Required = Required.Always)]
|
||||
private readonly string Guid = ASF.GlobalDatabase?.Identifier.ToString("N") ?? throw new InvalidOperationException(nameof(ASF.GlobalDatabase.Identifier));
|
||||
|
||||
private readonly ulong SteamID;
|
||||
|
||||
[JsonProperty(PropertyName = "subs", Required = Required.Always)]
|
||||
private readonly ImmutableDictionary<string, string> Subs;
|
||||
|
||||
#pragma warning disable CS0414
|
||||
[JsonProperty(PropertyName = "token", Required = Required.Always)]
|
||||
private readonly string Token = SharedInfo.Token;
|
||||
#pragma warning restore CS0414
|
||||
|
||||
#pragma warning disable CS0414
|
||||
[JsonProperty(PropertyName = "v", Required = Required.Always)]
|
||||
private readonly byte Version = SharedInfo.ApiVersion;
|
||||
#pragma warning restore CS0414
|
||||
|
||||
[JsonProperty(PropertyName = "steamid", Required = Required.Always)]
|
||||
private string SteamIDText => new SteamID(SteamID).Render();
|
||||
|
||||
|
|
Loading…
Reference in a new issue