Exemplo n.º 1
0
        public static ReherseInfo Parse(JToken token)
        {
            var result = new ReherseInfo();

            result.playerid   = (long)token["playerid"];
            result.playername = token["playername"].ToString();
            result.playerlv   = (int)token["playerlv"];
            result.top        = (int)token["top"];

            return(result);
        }
Exemplo n.º 2
0
        private List <ReherseInfo> Parse32101(Packet packet)
        {
            List <ReherseInfo> list = new List <ReherseInfo>();
            var    token            = JToken.Parse(packet.Message);
            JArray array            = (JArray)token["legion_memberdto"];

            foreach (var item in array)
            {
                list.Add(ReherseInfo.Parse(item));
            }
            return(list);
        }