Lots of additions and restructuring
This commit is contained in:
@@ -2,7 +2,6 @@ namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataBuyMagicKeyRequest : AbstractPlayerTargetedRequest
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataBuyMagicKeyResponse : AbstractResponse
|
||||
public class PlayerDataBuyMagicKeyResponse : OkResponse
|
||||
{
|
||||
[JsonProperty("cost_point")]
|
||||
public int TotalCost { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataFirstWinResponse : AbstractResponse
|
||||
public class PlayerDataFirstWinResponse : OkResponse
|
||||
{
|
||||
[JsonProperty("bonus_point")]
|
||||
public int BonusPoints { get; set; }
|
||||
|
||||
@@ -8,7 +8,7 @@ using TOOHUCardAPI.Data.Models;
|
||||
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataGetResponseObject: AbstractResponse
|
||||
public class PlayerDataGetResponseObject: OkResponse
|
||||
{
|
||||
// Instead of using a defined object, use a dictionary so we can add the necessary cardgroup items. I dont want to make 20 of them in the class
|
||||
[JsonProperty("bo")]
|
||||
@@ -19,7 +19,7 @@ namespace TOOHUCardAPI.DTO.PlayerData
|
||||
* Fields pulled from the game code
|
||||
* Looking up Gamerules.Playerdata
|
||||
*/
|
||||
public class PlayerDataGetResponseObjectPlayer: AbstractResponse
|
||||
public class PlayerDataGetResponseObjectPlayer: OkResponse
|
||||
{
|
||||
[JsonProperty("steamid")]
|
||||
public string SteamId { get; set; }
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataSaveCardGroupRequest: AbstractPlayerTargetedRequest
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
[JsonProperty("group_key")]
|
||||
public string GroupKey { get; set; }
|
||||
[JsonProperty("group_data")]
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataSaveCardGroupResponseObject : AbstractResponse
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataSaveCardLevelRequest : AbstractPlayerTargetedRequest
|
||||
{
|
||||
[JsonProperty("card")]
|
||||
public string CardItemCode { get; set; }
|
||||
[JsonProperty("level")]
|
||||
public int LevelIncrease { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataSaveCardLevelResponse : OkResponse
|
||||
{
|
||||
[JsonProperty("cost_point")]
|
||||
public int TotalCost { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ namespace TOOHUCardAPI.DTO.PlayerData
|
||||
{
|
||||
public class PlayerDataSaveKeyCountRequest: AbstractPlayerTargetedRequest
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
[JsonProperty("key_total")]public int KeyTotal { get; set; }
|
||||
[JsonProperty("key_use_count")]public int KeyUseCount { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user