RaiNote Posted January 15, 2021 Share Posted January 15, 2021 (edited) Since I didn't find any .NET implementation regarding the API I've gone ahead and make one myself. With my limited experience regarding webapis and accessing them etc. the source may look reasonably bad. Which APIs does it support? Cards API (limited) Map API (not working) Auction API (should work to its full extent) Leaderboards API (untested) Battleforge replay reader So with that out of the way: Nuget link Github repository Example Usage Spoiler private static readonly JsonSerializerSettings Settings = new() { MetadataPropertyHandling = MetadataPropertyHandling.Ignore, Formatting = Formatting.Indented, DateParseHandling = DateParseHandling.None, Converters = { new StringEnumConverter() } }; static void Main() { var x = Instances.CardService.HandleCardRequest(new List<Tuple<RequestProperty, string>> { new(RequestProperty.Name, "Gro"), new(RequestProperty.Defense, "1100") }); foreach (var card in x) { Console.WriteLine(JsonConvert.SerializeObject(card, Settings)); } } Edited January 27, 2021 by RaiNote update 1.0.5 | ReplayReader working Link to comment Share on other sites More sharing options...
RaiNote Posted January 21, 2021 Author Share Posted January 21, 2021 (edited) WIP Replay reader (untested should work?) Nuget Github Works but the amount of ReplayKeys is different from the other project. It's just slightly different e.g. 5%~10% more or less Edited January 22, 2021 by RaiNote Link to comment Share on other sites More sharing options...
RaiNote Posted January 23, 2021 Author Share Posted January 23, 2021 If anyone wants to use a .Net Library regarding Replay handling the version 1.0.2 is a completely fixed version and shouldn't encounter any issues, as of my testing. If there are any please tell me. Nuget Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now