Beispiel #1
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQHttpRequest req     = createHttpRequest("GET", QQConstants.URL_GET_USER_LEVEL);
            QQSession     session = getContext().getSession();

            req.addGetValue("tuin", user.getUin() + "");
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            return(req);
        }
Beispiel #2
0
        public override QQHttpRequest onBuildRequest()
        {
            QQSession     session = getContext().getSession();
            QQHttpRequest req     = createHttpRequest("GET", QQConstants.URL_GET_STRANGER_INFO);

            req.addGetValue("tuin", user.getUin() + "");
            req.addGetValue("verifysession", "");       // ?
            req.addGetValue("gid", "0");
            req.addGetValue("code", "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            return(req);
        }
Beispiel #3
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();

            QQHttpRequest req = createHttpRequest("GET",
                                                  QQConstants.URL_GET_USER_SIGN);

            req.addGetValue("tuin", buddy.getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }
Beispiel #4
0
        public override QQHttpRequest onBuildRequest()
        {
            QQSession     session = getContext().getSession();
            QQHttpRequest req     = createHttpRequest("GET", QQConstants.URL_GET_USER_FACE);

            req.addGetValue("uin", user.getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("cache", 0 + "");   // ??
            req.addGetValue("type", 1 + "");    // ??
            req.addGetValue("fid", 0 + "");     // ??

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();
            // tuin=4245757755&verifysession=&type=1&code=&vfwebqq=**&t=1361631644492
            QQHttpRequest req = createHttpRequest("GET",
                                                  QQConstants.URL_GET_USER_ACCOUNT);

            req.addGetValue("tuin", buddy.getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("verifysession", "");     // 验证码??
            req.addGetValue("type", 1 + "");
            req.addGetValue("code", "");

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }
Beispiel #6
0
        /** {@inheritDoc} */

        public Boolean equals(Object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (this == obj)
            {
                return(true);
            }

            if (obj is QQUser)
            {
                QQUser m = (QQUser)obj;
                if (m.getUin() == this.getUin())
                {
                    return(true);
                }
            }
            return(false);
        }
Beispiel #7
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();

            /*
             * tuin	236557647
             * verifysession
             * code
             * vfwebqq	efa425e6afa21b3ca3ab8db97b65afa0535feb4af47a38cadcf1a4b1650169b4b4eee9955f843990
             * t	1346856270187*/



            QQHttpRequest req = createHttpRequest("GET", QQConstants.URL_GET_FRIEND_INFO);

            req.addGetValue("tuin", buddy.getUin() + "");
            req.addGetValue("verifysession", "");       //难道有验证码???
            req.addGetValue("code", "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }