mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
Remove typing events
This commit is contained in:
parent
0494b374ba
commit
0e5f6d4787
@ -16,8 +16,10 @@ import net.mamoe.mirai.network.protocol.tim.packet.action.ClientSendFriendMessag
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.action.ClientSendGroupMessagePacket
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.action.ServerSendFriendMessageResponsePacket
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.action.ServerSendGroupMessageResponsePacket
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.event.*
|
||||
import net.mamoe.mirai.utils.MiraiLogger
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.event.IgnoredServerEventPacket
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.event.ServerFriendMessageEventPacket
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.event.ServerGroupMessageEventPacket
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.event.ServerGroupUploadFileEventPacket
|
||||
|
||||
/**
|
||||
* 处理消息事件, 承担消息发送任务.
|
||||
@ -60,17 +62,6 @@ class EventPacketHandler(session: BotSession) : PacketHandler(session) {
|
||||
|
||||
is ServerFriendOnlineStatusChangedPacket.Encrypted -> distributePacket(packet.decrypt(sessionKey))
|
||||
is ServerFriendOnlineStatusChangedPacket -> {
|
||||
MiraiLogger.logInfo("${packet.qq.toLong()} 登录状态改变为 ${packet.status}")
|
||||
//TODO
|
||||
}
|
||||
|
||||
is ServerFriendTypingStartedPacket -> {
|
||||
MiraiLogger.logInfo("${packet.qq.toLong()} 正在输入")
|
||||
//TODO
|
||||
}
|
||||
|
||||
is ServerFriendTypingCanceledPacket -> {
|
||||
MiraiLogger.logInfo("${packet.qq.toLong()} 取消了输入")
|
||||
//TODO
|
||||
}
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
package net.mamoe.mirai.network.protocol.tim.packet.event
|
||||
|
||||
import kotlinx.io.core.ByteReadPacket
|
||||
|
||||
|
||||
sealed class ServerFriendTypingPacket(input: ByteReadPacket, eventIdentity: EventPacketIdentity) : ServerEventPacket(input, eventIdentity) {
|
||||
val qq get() = eventIdentity.from
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 对方正在输入
|
||||
*/
|
||||
class ServerFriendTypingStartedPacket(input: ByteReadPacket, eventIdentity: EventPacketIdentity) : ServerFriendTypingPacket(input, eventIdentity)
|
||||
|
||||
/**
|
||||
* 对方取消了输入
|
||||
*/
|
||||
class ServerFriendTypingCanceledPacket(input: ByteReadPacket, eventIdentity: EventPacketIdentity) : ServerFriendTypingPacket(input, eventIdentity)
|
Loading…
Reference in New Issue
Block a user