R# cleanup

This commit is contained in:
JustArchi
2018-09-08 00:46:40 +02:00
parent e18c8ffa55
commit 9534d2b9f0
25 changed files with 219 additions and 91 deletions

View File

@@ -35,7 +35,12 @@ namespace ArchiSteamFarm {
private const byte MinPersonaStateTTL = 8; // Minimum amount of hours we must wait before requesting persona state update
private const string URL = "https://" + SharedInfo.StatisticsServer;
private static readonly HashSet<Steam.Asset.EType> AcceptedMatchableTypes = new HashSet<Steam.Asset.EType> { Steam.Asset.EType.Emoticon, Steam.Asset.EType.FoilTradingCard, Steam.Asset.EType.ProfileBackground, Steam.Asset.EType.TradingCard };
private static readonly HashSet<Steam.Asset.EType> AcceptedMatchableTypes = new HashSet<Steam.Asset.EType> {
Steam.Asset.EType.Emoticon,
Steam.Asset.EType.FoilTradingCard,
Steam.Asset.EType.ProfileBackground,
Steam.Asset.EType.TradingCard
};
private readonly Bot Bot;
private readonly SemaphoreSlim RequestsSemaphore = new SemaphoreSlim(1, 1);
@@ -174,4 +179,4 @@ namespace ArchiSteamFarm {
return await Bot.ArchiWebHandler.HasValidApiKey().ConfigureAwait(false);
}
}
}
}