using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; namespace TOOHUCardAPI.Models { public class PlayerDataGetResponseObject { public Dictionary bo { get; set; } public PlayerDataGetResponseObject(int players) { this.bo = new Dictionary(); foreach (int i in Enumerable.Range(0, players)) { bo[i] = new PlayerDataGetResponseObjectPlayer(); } } } /** * Fields pulled from the game code * Looking up Gamerules.Playerdata */ public class PlayerDataGetResponseObjectPlayer { [JsonProperty("code")] public string Code { get; set; } = "0000"; [JsonProperty("msg")] public string Message { get; set; } = string.Empty; //[JsonProperty("steamid")] //public string SteamId { get; set; } [JsonProperty("max_wave")] public int MaxWave { get; set; } = 0; [JsonProperty("max_team_wave")] public int MaxTeamWave { get; set; } = 0; [JsonProperty("pet_level")] public int PetLevel { get; set; } = 1; [JsonProperty("end_time")] public string EndTime { get; set; } = string.Empty; [JsonProperty("key_total")] public int KeyTotal { get; set; } = 100; [JsonProperty("key_save_date")] public string KeySaveDate { get; set; } = string.Empty; [JsonProperty("vip")] public int Vip { get; set; } = 1; [JsonProperty("point")] public int Point { get; set; } = 10000; [JsonProperty("level_list")] public string LevelList { get; set; } = string.Empty; } }