Misc improvements to ASF API

In bot controller, 3 endpoints:
POST {bot}
POST {bot}/GamesToRedeemInBackground
POST {bot}/Redeem

Now accept botNames (like all other endpoints), GenericResponse included in those responses now include Dictionary that maps previous single response to botName-response.

@JustArchiNET/asf-ui if you're not doing anything with the inner result of generic response, you don't need to do anything. If you do, please map your previous single inner result to dictionary of botName-single result. Functionality remains the same, thanks.
This commit is contained in:
JustArchi
2018-11-07 00:49:39 +01:00
parent 8825b46218
commit 1202298e01
3 changed files with 114 additions and 68 deletions

View File

@@ -87,7 +87,7 @@ namespace ArchiSteamFarm {
}
}
internal async Task AddGamesToRedeemInBackground(OrderedDictionary games) {
internal async Task AddGamesToRedeemInBackground(IOrderedDictionary games) {
if ((games == null) || (games.Count == 0)) {
ASF.ArchiLogger.LogNullError(nameof(games));
return;