Ejemplo n.º 1
0
        public override void Deserialize(KnetikJSONNode json)
        {
            base.Deserialize (json);

            MetricID = json ["metric_id"].AsInt;
            SortStyle = json ["sort_style"].Value;
            QualifyingValue = json["qualifying_value"].AsInt;
            Size = json["size"].AsInt;
            PlayerCount = json["player_count"].AsInt;
            Level = json["level"].Value;
            MetricName = json["metric_name"].Value;
            Entries = new List<LeaderboardEntry>();

            foreach (KnetikJSONNode node in json["leaderboard_data"].Children)
            {
                LeaderboardEntry entry = new LeaderboardEntry();
                entry.Deserialize(node);
                Entries.Add(entry);
            }
        }