From 11d4430bbcb7b8e08107999ebe4c031fbfebae76 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 12 Sep 2016 05:54:34 +0200 Subject: [PATCH] Rename Steam contextID to match ArchiBoT --- ArchiSteamFarm/ArchiWebHandler.cs | 4 ++-- ArchiSteamFarm/JSON/Steam.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index 21cb32f70..a75ed39c2 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -709,7 +709,7 @@ namespace ArchiSteamFarm { HashSet result = new HashSet(); - string request = SteamCommunityURL + "/my/inventory/json/" + Steam.Item.SteamAppID + "/" + Steam.Item.SteamContextID + "?l=english&trading=" + (tradable ? "1" : "0") + "&start="; + string request = SteamCommunityURL + "/my/inventory/json/" + Steam.Item.SteamAppID + "/" + Steam.Item.SteamCommunityContextID + "?l=english&trading=" + (tradable ? "1" : "0") + "&start="; uint currentPage = 0; while (true) { @@ -846,7 +846,7 @@ namespace ArchiSteamFarm { itemID = 0; } - singleTrade.ItemsToGive.Assets.Add(new Steam.Item(Steam.Item.SteamAppID, Steam.Item.SteamContextID, item.AssetID, item.Amount)); + singleTrade.ItemsToGive.Assets.Add(new Steam.Item(Steam.Item.SteamAppID, Steam.Item.SteamCommunityContextID, item.AssetID, item.Amount)); itemID++; } diff --git a/ArchiSteamFarm/JSON/Steam.cs b/ArchiSteamFarm/JSON/Steam.cs index 938efa95d..02e66eba8 100644 --- a/ArchiSteamFarm/JSON/Steam.cs +++ b/ArchiSteamFarm/JSON/Steam.cs @@ -35,7 +35,7 @@ namespace ArchiSteamFarm.JSON { internal static class Steam { internal sealed class Item { // REF: https://developer.valvesoftware.com/wiki/Steam_Web_API/IEconService#CEcon_Asset | Deserialized from JSON (SteamCommunity) and constructed from code internal const ushort SteamAppID = 753; - internal const byte SteamContextID = 6; + internal const byte SteamCommunityContextID = 6; internal enum EType : byte { Unknown, @@ -269,7 +269,7 @@ namespace ArchiSteamFarm.JSON { State = state; } - internal bool IsSteamCardsRequest() => ItemsToGive.All(item => (item.AppID == Item.SteamAppID) && (item.ContextID == Item.SteamContextID) && (item.Type == Item.EType.TradingCard)); + internal bool IsSteamCardsRequest() => ItemsToGive.All(item => (item.AppID == Item.SteamAppID) && (item.ContextID == Item.SteamCommunityContextID) && (item.Type == Item.EType.TradingCard)); internal bool IsFairTypesExchange() { Dictionary> itemsToGivePerGame = new Dictionary>();