Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

modio::Stats

Ahmed Castro edited this page Jul 17, 2019 · 3 revisions

Mod statistics data.

class Stats
{
public:
  u32 mod_id;
  u32 popularity_rank_position;
  u32 popularity_rank_total_mods;
  u32 downloads_total;
  u32 subscribers_total;
  u32 ratings_total;
  u32 ratings_positive;
  u32 ratings_negative;
  u32 ratings_percentage_positive;
  double ratings_weighted_aggregate;
  std::string ratings_display_text;
  u32 date_expires;

  void initialize(ModioStats mod);
};
Name Type Description
mod_id u32 Unique mod id.
popularity_rank_position u32 Current rank of the mod.
popularity_rank_total_mods u32 Number of ranking spots the current rank is measured against.
downloads_total u32 Number of total mod downloads.
subscribers_total u32 Number of total users who have subscribed to the mod.
ratings_total u32 Number of times this item has been rated.
ratings_positive u32 Number of positive ratings.
ratings_negative u32 Number of negative ratings.
ratings_percentage_positive u32 Number of positive ratings, divided by the total ratings to determine it’s percentage score.
ratings_weighted_aggregate double Overall rating of this item.
ratings_display_text std::string Textual representation of the rating.
date_expires u32 Unix timestamp until this mods's statistics are considered stale.

See also: API, ModioStats

Contents

Clone this wiki locally