Finished playerdata endpoint aside from donation stuff and bug testing, moved what controllers use out to services

This commit is contained in:
2021-10-31 11:38:52 -04:00
parent aa68670221
commit a3a50a5e07
7 changed files with 92 additions and 22 deletions

View File

@@ -35,6 +35,8 @@ namespace TOOHUCardAPI.DTO.PlayerData
[JsonProperty("is_first_win")]public int IsFirstWin { get; set; }
[JsonProperty("key_use_count")] public int KeyUseCount { get; set; }
[JsonProperty("power_max_total")] public int PowerMaxTotal { get; set; }
[JsonProperty("pet_model")] public string PetModel { get; set; }
[JsonProperty("pet_effect")] public string PetEffect { get; set; }
public Dictionary<string, object> ToDynamicProperties()
{

View File

@@ -0,0 +1,13 @@
using Newtonsoft.Json;
namespace TOOHUCardAPI.DTO.PlayerData
{
public class PlayerDataSavePetCustomRequest : AbstractPlayerTargetedRequest
{
[JsonProperty("pet_model")]
public string PetModel { get; set; }
[JsonProperty("pet_effect")]
public string PetEffect { get; set; }
}
}