private static FriendResult ParseResult(string text) { try { FriendResult result = JsonConvert.DeserializeObject <FriendResult>(text); if (result != null) { result.Items.Sort(new MsgItemComparer()); } return(result); } catch (Exception) { throw; } }
public static FriendContent ParseFriendContent(string text) { FriendResult r = ParseResult(text); List <FriendContent> list = new List <FriendContent>(); if (r == null) { return(null); } foreach (var item in r.Items) { } return(null); }