コード例 #1
0
 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;
     }
 }
コード例 #2
0
        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);
        }