用于存储搜索群的结果
コード例 #1
0
        public override void OnHttpStatusOK(QQHttpResponse response)
        {
            var json = JObject.Parse(response.GetResponseString());

            if (json["retcode"].ToString() == "0")
            {
                var result = json["result"].ToObject<JArray>();
                for (var index = 0; index < result.Count; index++)
                {   //结果获取;
                    var info = new QQGroupSearchInfo();
                    var ret = result[index].ToObject<JObject>();
                    info.GroupId = ret["GE"].ToObject<long>();  //真实的QQ号
                    info.OwerId = ret["QQ"].ToObject<long>();
                    info.GroupName = ret["TI"].ToString();
                    info.CreateTimeStamp = ret["RQ"].ToObject<long>();  //QQ群创建时间,时间戳形式;
                    info.GroupAliseId = ret["GEX"].ToObject<long>();
                }
            }
            if (json["retcode"].ToString() == "100110") //需要验证码
            {
                this._buddy.NeedVfcode = true;

            }
            NotifyActionEvent(QQActionEventType.EvtOK, _buddy);
        }