Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAPI dynamic interface should directly accept a set of arguments #674

Closed
yaakov-h opened this issue May 4, 2019 · 0 comments · Fixed by #675
Closed

WebAPI dynamic interface should directly accept a set of arguments #674

yaakov-h opened this issue May 4, 2019 · 0 comments · Fixed by #675

Comments

@yaakov-h
Copy link
Member

yaakov-h commented May 4, 2019

Something like this:

var args = new Dictionary<string, object> {
	{ "key", steamApiKey },
	{ "steamid_target", steamID },
	{ "trade_offer_access_token", tradeToken ?? "" } // kept for now
};

await iEconService.GetTradeHoldDurations(args);

if (args.Length == 1 & args[0] is IDictionary....) could work. I wouldn't want any arg as a dictionary to negate the rest.

See end of #522.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant