日期:2014-05-18 浏览次数:20738 次
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization.Json; using System.Runtime.Serialization; namespace TXWeibo { [DataContractAttribute] public class user { [DataMember(Name = "data")] public List<info> data{ get; set; } [DataMember] public int errcode { get; set; } [DataMember] public string msg { get; set; } [DataMember] public string ret { get; set; } [DataMember] public int nextstartpos { get; set; } } [DataContract] public class info { [DataMember] public string city_code { get; set; } [DataMember] public string country_code { get; set; } [DataMember] public int fansnum { get; set; } [DataMember] public string head { get; set; } [DataMember] public int idolnum { get; set; } [DataMember] public bool isfans { get; set; } [DataMember] public bool isidol { get; set; } [DataMember] public int isrealname { get; set; } [DataMember] public int isvip { get; set; } [DataMember] public string location { get; set; } [DataMember] public string name { get; set; } [DataMember] public string nick { get; set; } [DataMember] public string openid { get; set; } [DataMember] public string province_code { get; set; } [DataMember] public int sex { get; set; } [DataMember] public List<Tag> tag { get; set; } [DataMember] public Tweet tweet { get; set; } [DataMember] public int nextstartpos { get; set; } [DataMember] public int timestamp { get; set; } } [DataContract] public class Tag { [DataMember] public string id { get; set; } [DataMember] public string name { get; set; } } [DataContract] public class Tweet { [DataMember] public string from { get; set; } [DataMember] public string id { get; set; } [DataMember] public string text { get; set; } [DataMember] public int timestamp { get; set; } } }