protected override void ParseBody() { Decrypt(User.TXProtocol.SessionKey); Reader.ReadBytes(2); AddFriendType = (AddFriendType)Reader.Read(); Reader.ReadBytes(3); User.AddFriend0020Value = Reader.ReadBytes(32); }
protected override void ParseBody() { Decrypt(user.QQ_SessionKey); reader.ReadBytes(2); addFriendType = (AddFriendType)reader.Read(); reader.ReadBytes(3); user.AddFriend_0020Value = reader.ReadBytes(32); }
/// <summary> /// 获取添加群或好友的令牌 /// </summary> /// <param name="User"></param> /// <param name="AddQQ"></param> /// <param name="addType"></param> public Send_0x00AE(QQUser User, long AddQQ, AddFriendType addType) : base(User) { Sequence = GetNextSeq(); _secretKey = user.QQ_SessionKey; Command = QQCommand.Interactive0x00AE; _AddQQ = AddQQ; this.addType = addType; }
/// <summary> /// 获取添加群或好友的令牌 /// </summary> /// <param name="user"></param> /// <param name="addQQ"></param> /// <param name="addType"></param> public Send_0X00Ae(QQUser user, long addQQ, AddFriendType addType) : base(user) { Sequence = GetNextSeq(); SecretKey = user.TXProtocol.SessionKey; Command = QQCommand.Interactive0X00Ae; AddQQ = addQQ; AddType = addType; }
public Send_0X00A8(QQUser user, long addQQ, AddFriendType addType, string message) : base(user) { Sequence = GetNextSeq(); SecretKey = user.TXProtocol.SessionKey; Command = QQCommand.Interactive0X00Ae; AddQQ = addQQ; AddType = addType; Message = Encoding.UTF8.GetBytes(message); }
public Send_0x00A8(QQUser User, long AddQQ, AddFriendType addType, string Message) : base(User) { Sequence = GetNextSeq(); _secretKey = user.QQ_SessionKey; Command = QQCommand.Interactive0x00AE; _AddQQ = AddQQ; this.addType = addType; _message = Encoding.UTF8.GetBytes(Message); }