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); }
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); }