Added support for savemaxpower
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -10,6 +11,10 @@ namespace TOOHUCardAPI.DTO
|
||||
{
|
||||
public static string EncodeLevelList(this IEnumerable<CardLevel> cardLevels)
|
||||
{
|
||||
if (cardLevels == null)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
return cardLevels.Select(cl => $"{cl.CardItemCode.Substring(6)}{cl.Level}").Aggregate(new StringBuilder(),
|
||||
(ret, current) =>
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace TOOHUCardAPI.DTO
|
||||
[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("is_open_day")] public int IsOpenDay { get; set; } = 1;
|
||||
[JsonProperty("server_time")] public string ServerTime { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace TOOHUCardAPI.DTO.PlayerData
|
||||
[JsonProperty("level_list")] public string LevelList { get; set; } = string.Empty;
|
||||
[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; }
|
||||
|
||||
public Dictionary<string, object> ToDynamicProperties()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataSavePowerMaxTotalRequest : AbstractPlayerTargetedRequest
|
||||
{
|
||||
public string Op { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user