Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial2 Answers
David Clausen
11,403 Pointshttps://github.com/Jessecar96/SteamBot/wiki/Configuration-Guide
Its all in his git hub. You need to learn about abstract classes and inheritance. As his steam trade api is abstract. Then you need to have a back-end that's writting your data somewhere. Lets say TomJoe selects an item too trade on the website and request its. Well have the server write to a file maybe a JSON or XML with the Username, Steamname and item to trade. Have your App that uses SteamBot API look at that file, parse it and pass the username to your subclass that implements SteamTrade API. Then using steamtrade API you should be able to get what there trading and if it matches what your expecting.
David Clausen
11,403 PointsYes you would need to write code for everything. An API is something you write code to. You'd need a API for JSON if you went down that route. You'd also need to understand file stream, reading and writing. Unfortunately that is not a comment reply capable. You'd need to get a C# book. I recommend http://www.robmiles.com/c-yellow-book/ since its's free and Visual Studio community edition.
In short not you could not do this without writing code.
Robert Walker
17,146 PointsDeleted
Robert Walker
17,146 PointsRobert Walker
17,146 PointsOk so if I can pick your brain here then, once I write to a JSON file for the SteamBot, how am I meant to make it look for that file / read it. Would this require me writing code for it?
Also how would I get it to remove names once they have traded with someone on the list / next user to be traded, I know ill have to send some sort of information back to my PHP side but again this is not very clear on how I would go about doing this.
Example code or a article on the process would be amazing.
Sorry I know its a pain trying to explain to a complete newbie to C# but if I can grasp the ins and outs of whats needed here I can go research and experiment with it all, at the moment its all a foreign language and confusing but I know once a few things click the rest will too.
Robert Walker
17,146 PointsRobert Walker
17,146 PointsDeleted