babelshift / SteamWebAPI2

🎮 C# / .NET library that makes it easy to use the Steam Web API. It conveniently wraps around all of the JSON data and ugly API details with clean methods, structures and classes.
MIT License
263 stars 43 forks source link

Added pagination to EconItems#GetSchemaItemsForTF2Async() #105

Closed QuantumToasted closed 4 years ago

QuantumToasted commented 4 years ago

This fixes issue #104. I thought I'd just get the PR out of the way to save time. Verified with a modified unit test for the method which validates and uses the previously unused Next property in the response from the API.

The changing of Next to a uint? is a small breaking change, so if it would be preferred to keep it the same type and make other checks internally to know if we're "done" paginating, that could be done too.

babelshift commented 4 years ago

Thanks for your contribution. Super helpful!