Added some player response stuff, gameconfig changes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -18,42 +19,16 @@ namespace TOOHUCardAPI.Models
|
||||
public class GameConfigResponse
|
||||
{
|
||||
private static string SUCCESS_CODE = "0000";
|
||||
[JsonPropertyName("code")]
|
||||
public string Code { get; set; }
|
||||
[JsonPropertyName("msg")]
|
||||
public string Message { get; set; }
|
||||
[JsonPropertyName("game_code")]
|
||||
public string GameCode { get; set; }
|
||||
[JsonPropertyName("game_msg")]
|
||||
public string GameMessage { get; set; }
|
||||
[JsonPropertyName("luck_card")]
|
||||
public string LuckCard { get; set; }
|
||||
[JsonPropertyName("luck_crit")]
|
||||
public float LuckCrit { get; set; }
|
||||
[JsonPropertyName("new_card_list")]
|
||||
public string NewCardList { get; set; }
|
||||
[JsonPropertyName("open_day_list")]
|
||||
public string OpenDayList { get; set; }
|
||||
[JsonPropertyName("is_open_day")]
|
||||
public int IsOpenDay { get; set; }
|
||||
[JsonPropertyName("server_time")]
|
||||
public string ServerTime { get; set; }
|
||||
|
||||
public static GameConfigResponse Default()
|
||||
{
|
||||
return new GameConfigResponse
|
||||
{
|
||||
Code = SUCCESS_CODE,
|
||||
Message = string.Empty,
|
||||
GameCode = string.Empty,
|
||||
GameMessage = string.Empty,
|
||||
LuckCard = string.Empty,
|
||||
LuckCrit = 0,
|
||||
NewCardList = string.Empty,
|
||||
OpenDayList = string.Empty,
|
||||
IsOpenDay = 0,
|
||||
ServerTime = string.Empty,
|
||||
};
|
||||
}
|
||||
[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;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user