예제 #1
0
        /** {@inheritDoc} */
        public override void onHttpStatusOK(QQHttpResponse response)
        {
            Regex pt = new Regex(QQConstants.REGXP_LOGIN_SIG);
            Match mc = pt.Match(response.getResponseString());

            if (mc.Success)
            {
                QQSession session = getContext().getSession();
                session.setLoginSig(mc.Groups[1].Value);
                notifyActionEvent(QQActionEvent.Type.EVT_OK, session.getLoginSig());
            }
            else
            {
                notifyActionEvent(QQActionEvent.Type.EVT_ERROR, new QQException(QQWpfApplication1.action.QQException.QQErrorCode.INVALID_RESPONSE, "Login Sig Not Found!!"));
            }
        }