From d380a9ae6b1c8199d723f5221c6d5fd3ca4ddbee Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 10 Jun 2018 01:51:03 +0200 Subject: [PATCH] ArchiBoT/ASF code unification --- ArchiSteamFarm/ArchiWebHandler.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index e7c6604de..b376f4e63 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -111,8 +111,8 @@ namespace ArchiSteamFarm { // Extra entry for sessionID Dictionary data = new Dictionary(3) { - { "subid", subID.ToString() }, - { "action", "add_to_cart" } + { "action", "add_to_cart" }, + { "subid", subID.ToString() } }; HtmlDocument htmlDocument = await UrlPostToHtmlDocumentWithSession(SteamStoreURL, request, data).ConfigureAwait(false); @@ -830,12 +830,12 @@ namespace ArchiSteamFarm { // Extra entry for sessionID List> data = new List>(8 + confirmations.Count * 2) { - new KeyValuePair("op", accept ? "allow" : "cancel"), - new KeyValuePair("p", deviceID), new KeyValuePair("a", SteamID.ToString()), new KeyValuePair("k", confirmationHash), - new KeyValuePair("t", time.ToString()), new KeyValuePair("m", "android"), + new KeyValuePair("op", accept ? "allow" : "cancel"), + new KeyValuePair("p", deviceID), + new KeyValuePair("t", time.ToString()), new KeyValuePair("tag", "conf") }; @@ -1092,8 +1092,8 @@ namespace ArchiSteamFarm { // Extra entry for sessionID Dictionary data = new Dictionary(3) { - { "voteid", voteID.ToString() }, - { "appid", appID.ToString() } + { "appid", appID.ToString() }, + { "voteid", voteID.ToString() } }; return await UrlPostWithSession(SteamStoreURL, request, data).ConfigureAwait(false); @@ -1457,8 +1457,8 @@ namespace ArchiSteamFarm { // Extra entry for sessionID Dictionary data = new Dictionary(4) { - { "domain", "localhost" }, { "agreeToTerms", "agreed" }, + { "domain", "localhost" }, { "Submit", "Register" } };