Switch upload-> update, switch damage to be a float, we can make better adjustments tomorrow and get rank wrapped up
This commit is contained in:
@@ -32,7 +32,7 @@ namespace TOOHUCardAPI.Controllers
|
|||||||
_userService = userService;
|
_userService = userService;
|
||||||
}
|
}
|
||||||
|
|
||||||
[EndpointHandler("upload")]
|
[EndpointHandler("update")]
|
||||||
private async Task<IActionResult> UploadRankData(string body)
|
private async Task<IActionResult> UploadRankData(string body)
|
||||||
{
|
{
|
||||||
RankEntryDTO uploadrequest = JsonConvert.DeserializeObject<RankEntryDTO>(body, new RankEntryDTOConverter());
|
RankEntryDTO uploadrequest = JsonConvert.DeserializeObject<RankEntryDTO>(body, new RankEntryDTOConverter());
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ namespace TOOHUCardAPI.DTO.RankData
|
|||||||
[JsonProperty("wave")]
|
[JsonProperty("wave")]
|
||||||
public int Wave { get; set; }
|
public int Wave { get; set; }
|
||||||
[JsonProperty("damage")]
|
[JsonProperty("damage")]
|
||||||
public long Damage { get; set; }
|
public float Damage { get; set; }
|
||||||
[JsonProperty("updatetime")]
|
[JsonProperty("update_time")]
|
||||||
public DateTime UpdateTime { get; set; }
|
public DateTime UpdateTime { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public Dictionary<string, string> Cards { get; set; }
|
public Dictionary<string, string> Cards { get; set; }
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace TOOHUCardAPI.Data.Models
|
|||||||
public long AccountId { get; set; }
|
public long AccountId { get; set; }
|
||||||
public string Version { get; set; }
|
public string Version { get; set; }
|
||||||
public int Wave { get; set; }
|
public int Wave { get; set; }
|
||||||
public long Damage { get; set; }
|
public float Damage { get; set; }
|
||||||
public DateTime UpdateTime { get; set; }
|
public DateTime UpdateTime { get; set; }
|
||||||
public List<RankTowerEntry> TowersUsed { get; set; }
|
public List<RankTowerEntry> TowersUsed { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
"header": [],
|
"header": [],
|
||||||
"body": {
|
"body": {
|
||||||
"mode": "raw",
|
"mode": "raw",
|
||||||
"raw": "{\n \"method\": \"upload\",\n \"rank_type\": \"S\",\n \"steamid\": \"123\",\n \"userid\": \"12345\",\n \"username\": \"debug\",\n \"version\": \"S8\",\n \"wave\": 5,\n \"damage\": 5,\n \"card1\": \"debug\"\n}",
|
"raw": "{\n \"method\": \"update\",\n \"rank_type\": \"S\",\n \"steamid\": \"123\",\n \"userid\": \"12345\",\n \"username\": \"debug\",\n \"version\": \"S8\",\n \"wave\": 5,\n \"damage\": 5,\n \"card1\": \"debug\"\n}",
|
||||||
"options": {
|
"options": {
|
||||||
"raw": {
|
"raw": {
|
||||||
"language": "json"
|
"language": "json"
|
||||||
|
|||||||
Reference in New Issue
Block a user