34 lines
1.6 KiB
C#
34 lines
1.6 KiB
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace TOOHUCardAPI.Models
|
|
{
|
|
/**
|
|
* GameRules.GameData.code = data.code // "0000" for success
|
|
GameRules.GameData.msg = data.msg // error message if any
|
|
GameRules.GameData.game_code = data.game_code or ""
|
|
GameRules.GameData.game_msg = data.game_msg or ""
|
|
GameRules.GameData.luck_card = data.luck_card or ""
|
|
GameRules.GameData.luck_crit = data.luck_crit or 0
|
|
GameRules.GameData.new_card_list = data.new_card_list or ""
|
|
GameRules.GameData.open_day_list = data.open_day_list or ""
|
|
GameRules.GameData.is_open_day = data.is_open_day or 0
|
|
GameRules.GameData.server_time = data.server_time
|
|
*/
|
|
public class GameConfigResponse
|
|
{
|
|
private static string SUCCESS_CODE = "0000";
|
|
[JsonProperty("code")] public string Code { get; set; } = SUCCESS_CODE;
|
|
[JsonProperty("msg")] public string Message { get; set; } = string.Empty;
|
|
[JsonProperty("game_code")] public string GameCode { get; set; } = string.Empty;
|
|
[JsonProperty("game_msg")] public string GameMessage { get; set; } = string.Empty;
|
|
[JsonProperty("luck_card")] public string LuckCard { get; set; } = string.Empty;
|
|
[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("server_time")] public string ServerTime { get; set; } = string.Empty;
|
|
|
|
}
|
|
} |