예제 #1
0
        public static byte[] GetGroupMemberList(long GroupId)
        {
            var bytes = JceStruct.writeFlag(JceStruct.JceType.TYPE_STRUCT_BEGIN, 0);

            bytes = bytes.Concat(JceStruct.writeLong(API.QQ.LongQQ, 0)).ToArray();
            bytes = bytes.Concat(JceStruct.writeLong(GroupId, 1)).ToArray();
            bytes = bytes.Concat(JceStruct.writeZero(2)).ToArray();
            bytes = bytes.Concat(JceStruct.writeLong(API.Gid2Int(GroupId), 3)).ToArray();
            bytes = bytes.Concat(JceStruct.writeByte(2, 4)).ToArray();
            bytes = bytes.Concat(JceStruct.writeByte(1, 5)).ToArray();
            bytes = bytes.Concat(JceStruct.writeZero(6)).ToArray();
            bytes = bytes.Concat(JceStruct.writeFlag(JceStruct.JceType.TYPE_STRUCT_END, 7)).ToArray();
            Dictionary <object, object> dic = new Dictionary <object, object>()
            {
                { "GTML", bytes }
            };

            bytes = JceStruct.writeMap(dic, 0);
            bytes = Pack_HeadJce(API.QQ.mRequestID, "mqq.IMService.FriendListServiceServantObj", "GetTroopMemberListReq", bytes);
            //Debug.Print("GetGroupMemberList" + Environment.NewLine  + BitConverter.ToString(bytes).Replace("-", " "))
            bytes = API.PackCmdHeader("friendlist.GetTroopMemberList", bytes);
            bytes = API.PackAllHeader(bytes);
            API.TClient.SendData(bytes);
            return(bytes);
        }