예제 #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);
        }
예제 #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);
        }