Esempio n. 1
0
        /// <summary>
        /// 获取自己的信息
        /// </summary>
        private void GetSelfInfo()
        {
            string     url = UrlDefine.Self_Info.Replace("#{t}", Utility.AID_TimeStamp());
            string     dat = Http.Get(url, UrlDefine.PT);
            JsonFriend inf = (JsonFriend)JsonConvert.DeserializeObject(dat, typeof(JsonFriend));

            SelfInfo.face       = inf.result.face;
            SelfInfo.occupation = inf.result.occupation;
            SelfInfo.phone      = inf.result.phone;
            SelfInfo.college    = inf.result.college;
            SelfInfo.blood      = inf.result.blood;
            SelfInfo.homepage   = inf.result.homepage;
            SelfInfo.vip_info   = inf.result.vip_info;
            SelfInfo.country    = inf.result.country;
            SelfInfo.city       = inf.result.city;
            SelfInfo.personal   = inf.result.personal;
            SelfInfo.nick       = inf.result.nick;
            SelfInfo.shengxiao  = inf.result.shengxiao;
            SelfInfo.email      = inf.result.email;
            SelfInfo.province   = inf.result.province;
            SelfInfo.gender     = inf.result.gender;
            if (inf.result.birthday.year != 0 && inf.result.birthday.month != 0 && inf.result.birthday.day != 0)
            {
                SelfInfo.birthday = new DateTime(inf.result.birthday.year, inf.result.birthday.month, inf.result.birthday.day);
            }
        }
Esempio n. 2
0
        private bool GetVfWebQQ()
        {
            string url = UrlDefine.VF.Replace("#{ptwebqq}", ptwebqq).Replace("#{t}", Utility.AID_TimeStamp());
            string dat = Http.Get(url, UrlDefine.PT);

            vfwebqq = dat.Split('\"')[7];
            return(!string.IsNullOrEmpty(vfwebqq));
        }
Esempio n. 3
0
        private static void GetOnlineAndRecent()
        {
            string url = UrlDefine.Online_Recent.Replace("#{vfwebqq}", vfwebqq).Replace("#{psessionid}", psessionid).Replace("#{t}", Utility.AID_TimeStamp());

            Http.Get(url, UrlDefine.Pession_Refer);

            url = UrlDefine.Recent_List;
            string url1 = "{\"vfwebqq\":\"#{vfwebqq}\",\"clientid\":53999199,\"psessionid\":\"#{psessionid}\"}".Replace("#{vfwebqq}", vfwebqq).Replace("#{psessionid}", psessionid);
            string dat  = Http.Post(url, "r=" + HttpUtility.UrlEncode(url1), UrlDefine.Pession_Refer);
        }
Esempio n. 4
0
        /// <summary>
        /// 根据uin获取真实QQ号
        /// </summary>
        /// <param name="uin"></param>
        /// <returns></returns>
        public static string GetRealQQ(string uin)
        {
            string url  = UrlDefine.REAL_QQ.Replace("#{uin}", uin).Replace("#{vfwebqq}", vfwebqq).Replace("#{t}", Utility.AID_TimeStamp());
            string data = Http.Get(url);
            string temp = data.Split('\"')[10].Split(',')[0].Replace(":", "");

            return(temp);
        }
Esempio n. 5
0
 private void GetDiscussList()
 {
     string url = UrlDefine.Discuss_List.Replace("#{psessionid}", psessionid).Replace("#{vfwebqq}", vfwebqq).Replace("#{t}", Utility.AID_TimeStamp());
     string dat = Http.Get(url, UrlDefine.Pession_Refer);
 }