mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 00:50:15 +00:00
Cleanup some obsolete warnings
This commit is contained in:
@@ -27,42 +27,32 @@ using SteamKit2;
|
||||
|
||||
namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper {
|
||||
internal sealed class RequestData {
|
||||
#pragma warning disable IDE0052
|
||||
[JsonProperty(PropertyName = "apps", Required = Required.Always)]
|
||||
private readonly ImmutableDictionary<string, string> Apps;
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
#pragma warning disable IDE0052
|
||||
[JsonProperty(PropertyName = "depots", Required = Required.Always)]
|
||||
private readonly ImmutableDictionary<string, string> Depots;
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
#pragma warning disable IDE0052
|
||||
[JsonProperty(PropertyName = "guid", Required = Required.Always)]
|
||||
private readonly string Guid = ASF.GlobalDatabase?.Identifier.ToString("N") ?? throw new InvalidOperationException(nameof(ASF.GlobalDatabase.Identifier));
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
private readonly ulong SteamID;
|
||||
|
||||
#pragma warning disable IDE0052
|
||||
[JsonProperty(PropertyName = "subs", Required = Required.Always)]
|
||||
private readonly ImmutableDictionary<string, string> Subs;
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
#pragma warning disable IDE0051, 414
|
||||
#pragma warning disable CS0414
|
||||
[JsonProperty(PropertyName = "token", Required = Required.Always)]
|
||||
private readonly string Token = SharedInfo.Token;
|
||||
#pragma warning restore IDE0051, 414
|
||||
#pragma warning restore CS0414
|
||||
|
||||
#pragma warning disable IDE0051, 414
|
||||
#pragma warning disable CS0414
|
||||
[JsonProperty(PropertyName = "v", Required = Required.Always)]
|
||||
private readonly byte Version = SharedInfo.ApiVersion;
|
||||
#pragma warning restore IDE0051, 414
|
||||
#pragma warning restore CS0414
|
||||
|
||||
#pragma warning disable IDE0051
|
||||
[JsonProperty(PropertyName = "steamid", Required = Required.Always)]
|
||||
private string SteamIDText => new SteamID(SteamID).Render();
|
||||
#pragma warning restore IDE0051
|
||||
|
||||
internal RequestData(ulong steamID, IReadOnlyCollection<KeyValuePair<uint, ulong>> apps, IReadOnlyCollection<KeyValuePair<uint, ulong>> accessTokens, IReadOnlyCollection<KeyValuePair<uint, string>> depots) {
|
||||
if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount) {
|
||||
|
||||
@@ -25,34 +25,32 @@ using Newtonsoft.Json;
|
||||
namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper {
|
||||
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
|
||||
internal sealed class ResponseData {
|
||||
#pragma warning disable 649
|
||||
[JsonProperty(PropertyName = "data", Required = Required.Always)]
|
||||
internal readonly InternalData Data = new();
|
||||
#pragma warning restore 649
|
||||
|
||||
#pragma warning disable 649
|
||||
#pragma warning disable CS0649
|
||||
[JsonProperty(PropertyName = "success", Required = Required.Always)]
|
||||
internal readonly bool Success;
|
||||
#pragma warning restore 649
|
||||
#pragma warning restore CS0649
|
||||
|
||||
[JsonConstructor]
|
||||
private ResponseData() { }
|
||||
|
||||
internal sealed class InternalData {
|
||||
#pragma warning disable 649
|
||||
#pragma warning disable CS0649
|
||||
[JsonProperty(PropertyName = "new_apps", Required = Required.Always)]
|
||||
internal readonly uint NewAppsCount;
|
||||
#pragma warning restore 649
|
||||
#pragma warning restore CS0649
|
||||
|
||||
#pragma warning disable 649
|
||||
#pragma warning disable CS0649
|
||||
[JsonProperty(PropertyName = "new_depots", Required = Required.Always)]
|
||||
internal readonly uint NewDepotsCount;
|
||||
#pragma warning restore 649
|
||||
#pragma warning restore CS0649
|
||||
|
||||
#pragma warning disable 649
|
||||
#pragma warning disable CS0649
|
||||
[JsonProperty(PropertyName = "new_subs", Required = Required.Always)]
|
||||
internal readonly uint NewSubsCount;
|
||||
#pragma warning restore 649
|
||||
#pragma warning restore CS0649
|
||||
|
||||
[JsonConstructor]
|
||||
internal InternalData() { }
|
||||
|
||||
Reference in New Issue
Block a user