This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
General Stats
Albie edited this page Jan 20, 2021
·
5 revisions
Ubisoft exposes an endpoint to get "general" stats for casual, ranked, terrorist hunt, operators and weapons. It also has some of those random stats like total reinforcements, barricades and DBNOs (downs). These are referred to ubisoft as infinite
, meaning they aren't seasonal.
- Some of the classes serialise into custom text, and some don't (like
OperatorStats
andWeaponStats
). this is because they interfere with our Telerik UI. Dragon6 is the primary consumer for this API so it takes priority - Casual, Ranked and terrorist hunt all share the same stats container. There's also an overall container for total stats.
private string DisplayTotalKillsFor(AccountInfo account)
{
//todo use a caching system to get all the stats once demanded after 10 mins?
var stats = d6Client.GetStats(account);
return $"{account.Name} has {stats.Overall.Kills:n0} kills";
}