protected override void ProcessResponseText(string responseText)
        {
            QQLoginConnectionException.CheckResponseText(responseText);

            string json = QQLoginConnectionManager.GetResponseJsonString(responseText);

            if (json.IsNullOrEmpty())
            {
                throw new ApplicationException(responseText);
            }

            Dictionary <string, object> data = JSONSerializerExecute.Deserialize <Dictionary <string, object> >(json);

            QQGetUserInfoResponseParams response = new QQGetUserInfoResponseParams(this.RequestParams.OpenID);

            response.FromDictionary(data);

            this.ResponseParams = response;
        }
Exemplo n.º 2
0
        protected override void ProcessResponseText(string responseText)
        {
            QQLoginConnectionException.CheckResponseText(responseText);

            string json = QQLoginConnectionManager.GetResponseJsonString(responseText);

            if (json.IsNullOrEmpty())
            {
                throw new ApplicationException(responseText);
            }

            Dictionary <string, object> data = JSONSerializerExecute.Deserialize <Dictionary <string, object> >(json);

            QQGetOpenIDResponseParams result = new QQGetOpenIDResponseParams();

            result.ClientID = data.GetValue("client_id", string.Empty);
            result.OpenID   = data.GetValue("openid", string.Empty);

            this.ResponseParams = result;
        }
        protected override void ProcessResponseText(string responseText)
        {
            QQLoginConnectionException.CheckResponseText(responseText);

            this.ResponseParams = new QQAccessTokenResponseParams(responseText);
        }