Player data initial
This commit is contained in:
@@ -19,16 +19,16 @@ namespace TOOHUCardAPI.Models
|
||||
public class GameConfigResponse
|
||||
{
|
||||
private static string SUCCESS_CODE = "0000";
|
||||
[JsonPropertyName("code")] public string Code { get; set; } = SUCCESS_CODE;
|
||||
[JsonPropertyName("msg")] public string Message { get; set; } = string.Empty;
|
||||
[JsonPropertyName("game_code")] public string GameCode { get; set; } = string.Empty;
|
||||
[JsonPropertyName("game_msg")] public string GameMessage { get; set; } = string.Empty;
|
||||
[JsonPropertyName("luck_card")] public string LuckCard { get; set; } = string.Empty;
|
||||
[JsonPropertyName("luck_crit")] public float LuckCrit { get; set; }
|
||||
[JsonPropertyName("new_card_list")] public string NewCardList { get; set; } = string.Empty;
|
||||
[JsonPropertyName("open_day_list")] public string OpenDayList { get; set; } = String.Empty;
|
||||
[JsonPropertyName("is_open_day")] public int IsOpenDay { get; set; }
|
||||
[JsonPropertyName("server_time")] public string ServerTime { get; set; } = string.Empty;
|
||||
[JsonProperty("code")] public string Code { get; set; } = SUCCESS_CODE;
|
||||
[JsonProperty("msg")] public string Message { get; set; } = string.Empty;
|
||||
[JsonProperty("game_code")] public string GameCode { get; set; } = string.Empty;
|
||||
[JsonProperty("game_msg")] public string GameMessage { get; set; } = string.Empty;
|
||||
[JsonProperty("luck_card")] public string LuckCard { get; set; } = string.Empty;
|
||||
[JsonProperty("luck_crit")] public float LuckCrit { get; set; }
|
||||
[JsonProperty("new_card_list")] public string NewCardList { get; set; } = string.Empty;
|
||||
[JsonProperty("open_day_list")] public string OpenDayList { get; set; } = String.Empty;
|
||||
[JsonProperty("is_open_day")] public int IsOpenDay { get; set; }
|
||||
[JsonProperty("server_time")] public string ServerTime { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace TOOHUCardAPI.Models
|
||||
{
|
||||
public class PlayerDataRequestObject
|
||||
public class PlayerDataGetRequestObject
|
||||
{
|
||||
public string Method { get; set; }
|
||||
public string[] Ids { get; set; }
|
||||
|
||||
@@ -1,23 +1,41 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace TOOHUCardAPI.Models
|
||||
{
|
||||
public class PlayerDataGetResponseObject
|
||||
{
|
||||
public Dictionary<int, PlayerDataGetResponseObjectPlayer> bo { get; set; }
|
||||
|
||||
public PlayerDataGetResponseObject(int players)
|
||||
{
|
||||
this.bo = new Dictionary<int, PlayerDataGetResponseObjectPlayer>();
|
||||
foreach (int i in Enumerable.Range(0, players))
|
||||
{
|
||||
bo[i] = new PlayerDataGetResponseObjectPlayer();
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Fields pulled from the game code
|
||||
* Looking up Gamerules.Playerdata
|
||||
*/
|
||||
public class PlayerDataGetResponseObject
|
||||
public class PlayerDataGetResponseObjectPlayer
|
||||
{
|
||||
|
||||
public string Code { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string SteamId { get; set; }
|
||||
public int MaxWave { get; set; }
|
||||
public int MaxTeamWave { get; set; }
|
||||
public int PetLevel { get; set; }
|
||||
public string EndTime { get; set; }
|
||||
public int KeyTotal { get; set; }
|
||||
public string KeySaveDate { get; set; }
|
||||
public int Vip { get; set; }
|
||||
public int Point { get; set; }
|
||||
public string LevelList { get; set; }
|
||||
[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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user