using System; using System.Collections.Generic; using HttpApi; namespace Api { [Serializable] public class ModelApiResponse { public int code; public string err; public ResponseSuccessData data; } [Serializable] public class ModelBattleDetailListApiResponse { public int code; public string err; public BattleDetailListObj data; } [Serializable] public class PlayerInfo { public string avatar; public int diamond; public string name; public int id; public int playerId; public int score; } [Serializable] public class ResponseSuccessData { public string session; public List msgs; public List players; public List playerCocks; public List market; public List cockTypes; public List rankList; // 查询用户信息用 public string name; public string icon; public PlayerInfo selfInfo; // 对战 public BattleDetailListObj battleInfo; } [Serializable] public class MarketCock { public int marketId; public int cockId; public int times; public int diamond; } [Serializable] public class Cock { public int cockId; public int times; } [Serializable] public class CockType { public int id; public string name; public float atkStar; public float hpStar; public float intervalStar; } [Serializable] public class Msg { public int msgFromPlayer; public string id; public int type; public MsgContent content; } public static class MsgContentType { public static readonly string ChooseCock = "ChooseCock"; public static readonly string SelectDiamond = "SelectDiamond"; } [Serializable] public class MsgContent { //这2个字段用来战斗中的消息 public string contentType; public int cockId; public int diamond; //下面是准备信息 public string battleSession; public long bid; public PlayerInfo invitePlayer; public int from; public int to; public int fromCockId; public int toCockId; public bool fromPlayerReady; public bool toPlayerReady; public bool winPlayer; } }