123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- 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<Msg> msgs;
- public List<PlayerInfo> players;
- public List<Cock> playerCocks;
- public List<MarketCock> market;
- public List<CockType> cockTypes;
- public List<PlayerInfo> 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;
- }
- }
|