Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

General Stats

Albie edited this page Aug 5, 2020 · 5 revisions

Overview

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.

Notes

  • Some of the classes serialise into custom text, and some don't (like OperatorStats and WeaponStats). 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.

Example

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}";
}