zoukankan      html  css  js  c++  java
  • WPF Get jiayuan outbox list(send mail box)

     
    1. Request URL:
      http://www.jiayuan.com/msg/outbox/list.php
    2. Request Method:
      POST

       form data:

    3. type=all&page=1
    4. --------------------------------------------------------------
    pasting

    using System;

    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Shapes;
    using Newtonsoft.Json;
    namespace wgscd
    {
        /// <summary>
        /// Interaction logic for TestWindow1.xaml
        /// </summary>
        public partial class TestWindow1 : Window
        {
            public TestWindow1()
            {
                InitializeComponent();
                listData = new List<string>();
                listData = GetData();
                list.ItemsSource = listData;
            }
            List<string> listData;
            public List<string> GetData()
            {
                List<string> listUser = new List<string>();
                InboxData d = JsonConvert.DeserializeObject<InboxData>(Properties.Resources.json);
                foreach (var u in d.data)
                {
                    listUser.Add(u.desc);
                    string uid = u.uid;
                    string age = u.desc.Substring(0, 2);
                    string from = u.desc.Split(",".ToCharArray())[2];
                }
                return listUser;
            }
        }
        public class InboxData
        {
            public string recode { get; set; }
            public string total { get; set; }
            public Data[] data { get; set; }
        }
        public class Data
        {
            public string uid { get; set; }
            public string nickname { get; set; }
            public string sex { get; set; }
            public string desc { get; set; }
        }
    }
  • 相关阅读:
    HDU 3951 (博弈) Coin Game
    HDU 3863 (博弈) No Gambling
    HDU 3544 (不平等博弈) Alice's Game
    POJ 3225 (线段树 区间更新) Help with Intervals
    POJ 2528 (线段树 离散化) Mayor's posters
    POJ 3468 (线段树 区间增减) A Simple Problem with Integers
    HDU 1698 (线段树 区间更新) Just a Hook
    POJ (线段树) Who Gets the Most Candies?
    POJ 2828 (线段树 单点更新) Buy Tickets
    HDU 2795 (线段树 单点更新) Billboard
  • 原文地址:https://www.cnblogs.com/wgscd/p/8694834.html
Copyright © 2011-2022 走看看