Move package ...network.data to ...data

This commit is contained in:
Him188 2019-12-20 09:34:35 +08:00
parent 6640292663
commit 361b842aa1
52 changed files with 71 additions and 67 deletions

View File

@ -5,6 +5,9 @@ import net.mamoe.mirai.Bot
import net.mamoe.mirai.BotAccount import net.mamoe.mirai.BotAccount
import net.mamoe.mirai.BotImpl import net.mamoe.mirai.BotImpl
import net.mamoe.mirai.contact.* import net.mamoe.mirai.contact.*
import net.mamoe.mirai.data.AddFriendResult
import net.mamoe.mirai.data.ImageLink
import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.message.data.Image import net.mamoe.mirai.message.data.Image
import net.mamoe.mirai.message.data.ImageId0x03 import net.mamoe.mirai.message.data.ImageId0x03
import net.mamoe.mirai.message.data.ImageId0x06 import net.mamoe.mirai.message.data.ImageId0x06

View File

@ -1,7 +1,7 @@
package net.mamoe.mirai.timpc.internal package net.mamoe.mirai.timpc.internal
import net.mamoe.mirai.contact.* import net.mamoe.mirai.contact.*
import net.mamoe.mirai.network.data.GroupInfo import net.mamoe.mirai.data.GroupInfo
import net.mamoe.mirai.timpc.TIMPCBot import net.mamoe.mirai.timpc.TIMPCBot
import net.mamoe.mirai.timpc.network.packet.action.GroupPacket import net.mamoe.mirai.timpc.network.packet.action.GroupPacket
import net.mamoe.mirai.utils.LockFreeLinkedList import net.mamoe.mirai.utils.LockFreeLinkedList

View File

@ -9,10 +9,10 @@ import net.mamoe.mirai.contact.*
import net.mamoe.mirai.event.subscribeAlways import net.mamoe.mirai.event.subscribeAlways
import net.mamoe.mirai.message.data.ImageId import net.mamoe.mirai.message.data.ImageId
import net.mamoe.mirai.message.data.MessageChain import net.mamoe.mirai.message.data.MessageChain
import net.mamoe.mirai.network.data.FriendNameRemark import net.mamoe.mirai.data.FriendNameRemark
import net.mamoe.mirai.network.data.GroupInfo import net.mamoe.mirai.data.GroupInfo
import net.mamoe.mirai.network.data.PreviousNameList import net.mamoe.mirai.data.PreviousNameList
import net.mamoe.mirai.network.data.Profile import net.mamoe.mirai.data.Profile
import net.mamoe.mirai.qqAccount import net.mamoe.mirai.qqAccount
import net.mamoe.mirai.timpc.TIMPCBot import net.mamoe.mirai.timpc.TIMPCBot
import net.mamoe.mirai.timpc.internal.RawGroupInfo import net.mamoe.mirai.timpc.internal.RawGroupInfo

View File

@ -12,8 +12,8 @@ import net.mamoe.mirai.event.Subscribable
import net.mamoe.mirai.event.broadcast import net.mamoe.mirai.event.broadcast
import net.mamoe.mirai.event.events.BotLoginSucceedEvent import net.mamoe.mirai.event.events.BotLoginSucceedEvent
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.LoginResult import net.mamoe.mirai.data.LoginResult
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.qqAccount import net.mamoe.mirai.qqAccount
import net.mamoe.mirai.timpc.TIMPCBot import net.mamoe.mirai.timpc.TIMPCBot
import net.mamoe.mirai.timpc.network.handler.DataPacketSocketAdapter import net.mamoe.mirai.timpc.network.handler.DataPacketSocketAdapter

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.handler
import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import kotlin.coroutines.CoroutineContext import kotlin.coroutines.CoroutineContext
import kotlin.reflect.KClass import kotlin.reflect.KClass

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.*
import kotlinx.serialization.SerializationStrategy import kotlinx.serialization.SerializationStrategy
import kotlinx.serialization.protobuf.ProtoBuf import kotlinx.serialization.protobuf.ProtoBuf
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.utils.io.hexToBytes import net.mamoe.mirai.utils.io.hexToBytes
import net.mamoe.mirai.utils.io.writeQQ import net.mamoe.mirai.utils.io.writeQQ

View File

@ -2,7 +2,7 @@ package net.mamoe.mirai.timpc.network.packet
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.readBytes import kotlinx.io.core.readBytes
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.utils.io.toUHexString import net.mamoe.mirai.utils.io.toUHexString
/** /**

View File

@ -10,7 +10,7 @@ import kotlinx.io.pool.useInstance
import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.protobuf.ProtoBuf import kotlinx.serialization.protobuf.ProtoBuf
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.utils.io.ByteArrayPool import net.mamoe.mirai.utils.io.ByteArrayPool
import net.mamoe.mirai.utils.io.debugPrint import net.mamoe.mirai.utils.io.debugPrint
import net.mamoe.mirai.utils.io.read import net.mamoe.mirai.utils.io.read

View File

@ -5,9 +5,9 @@ package net.mamoe.mirai.timpc.network.packet.action
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.contact.QQ import net.mamoe.mirai.contact.QQ
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.network.data.PreviousNameList import net.mamoe.mirai.data.PreviousNameList
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -8,8 +8,8 @@ import net.mamoe.mirai.message.data.ImageId
import net.mamoe.mirai.message.data.ImageId0x06 import net.mamoe.mirai.message.data.ImageId0x06
import net.mamoe.mirai.message.data.requireLength import net.mamoe.mirai.message.data.requireLength
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.network.data.ImageLink import net.mamoe.mirai.data.ImageLink
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.ExternalImage import net.mamoe.mirai.utils.ExternalImage

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.packet.action
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.packet.PacketId import net.mamoe.mirai.timpc.network.packet.PacketId
import net.mamoe.mirai.timpc.network.packet.SessionPacketFactory import net.mamoe.mirai.timpc.network.packet.SessionPacketFactory

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.writeFully import kotlinx.io.core.writeFully
import kotlinx.io.core.writeUByte import kotlinx.io.core.writeUByte
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.writeQQ import net.mamoe.mirai.utils.io.writeQQ

View File

@ -9,8 +9,8 @@ import net.mamoe.mirai.contact.GroupInternalId
import net.mamoe.mirai.message.data.ImageId0x03 import net.mamoe.mirai.message.data.ImageId0x03
import net.mamoe.mirai.message.data.requireLength import net.mamoe.mirai.message.data.requireLength
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.network.data.ImageLink import net.mamoe.mirai.data.ImageLink
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.timpc.utils.assertUnreachable import net.mamoe.mirai.timpc.utils.assertUnreachable
import net.mamoe.mirai.utils.ExternalImage import net.mamoe.mirai.utils.ExternalImage

View File

@ -9,7 +9,7 @@ import net.mamoe.mirai.contact.groupInternalId
import net.mamoe.mirai.message.data.MessageChain import net.mamoe.mirai.message.data.MessageChain
import net.mamoe.mirai.message.internal.toPacket import net.mamoe.mirai.message.internal.toPacket
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.internal.RawGroupInfo import net.mamoe.mirai.timpc.internal.RawGroupInfo
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*

View File

@ -4,10 +4,10 @@ package net.mamoe.mirai.timpc.network.packet.action
import io.ktor.util.date.GMTDate import io.ktor.util.date.GMTDate
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.network.data.Gender import net.mamoe.mirai.data.Gender
import net.mamoe.mirai.network.data.Profile import net.mamoe.mirai.data.Profile
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -5,7 +5,7 @@ package net.mamoe.mirai.timpc.network.packet.action
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.discardExact import kotlinx.io.core.discardExact
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.FriendNameRemark import net.mamoe.mirai.data.FriendNameRemark
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.readUShortLVString import net.mamoe.mirai.utils.io.readUShortLVString
import net.mamoe.mirai.utils.io.writeQQ import net.mamoe.mirai.utils.io.writeQQ

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.packet.action
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.writeZero import net.mamoe.mirai.utils.io.writeZero

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.*
import net.mamoe.mirai.message.data.MessageChain import net.mamoe.mirai.message.data.MessageChain
import net.mamoe.mirai.message.internal.toPacket import net.mamoe.mirai.message.internal.toPacket
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -5,7 +5,7 @@ package net.mamoe.mirai.timpc.network.packet.event
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.discardExact import kotlinx.io.core.discardExact
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.packet.PacketVersion import net.mamoe.mirai.timpc.network.packet.PacketVersion
import net.mamoe.mirai.utils.io.readBoolean import net.mamoe.mirai.utils.io.readBoolean

View File

@ -5,7 +5,7 @@ package net.mamoe.mirai.timpc.network.packet.event
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMBotNetworkHandler import net.mamoe.mirai.timpc.network.TIMBotNetworkHandler
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.qqAccount import net.mamoe.mirai.qqAccount

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.discardExact import kotlinx.io.core.discardExact
import kotlinx.io.core.readUInt import kotlinx.io.core.readUInt
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.timpc.network.packet.PacketVersion import net.mamoe.mirai.timpc.network.packet.PacketVersion
import net.mamoe.mirai.utils.io.readQQ import net.mamoe.mirai.utils.io.readQQ

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.packet.event
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.timpc.network.packet.PacketVersion import net.mamoe.mirai.timpc.network.packet.PacketVersion
import net.mamoe.mirai.utils.io.debugPrint import net.mamoe.mirai.utils.io.debugPrint

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.packet.event
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.utils.io.toUHexString import net.mamoe.mirai.utils.io.toUHexString
internal inline class IgnoredEventPacket(val id: UShort) : EventPacket { internal inline class IgnoredEventPacket(val id: UShort) : EventPacket {

View File

@ -7,7 +7,7 @@ import kotlinx.io.core.readUByte
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.contact.Group import net.mamoe.mirai.contact.Group
import net.mamoe.mirai.contact.Member import net.mamoe.mirai.contact.Member
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.qqAccount import net.mamoe.mirai.qqAccount
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -5,7 +5,7 @@ package net.mamoe.mirai.timpc.network.packet.event
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.discardExact import kotlinx.io.core.discardExact
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.timpc.network.packet.PacketVersion import net.mamoe.mirai.timpc.network.packet.PacketVersion
import net.mamoe.mirai.utils.io.readQQ import net.mamoe.mirai.utils.io.readQQ
import net.mamoe.mirai.contact.Member import net.mamoe.mirai.contact.Member

View File

@ -7,7 +7,7 @@ import kotlinx.io.core.readBytes
import kotlinx.io.pool.useInstance import kotlinx.io.pool.useInstance
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.utils.io.ByteArrayPool import net.mamoe.mirai.utils.io.ByteArrayPool
import net.mamoe.mirai.utils.io.toUHexString import net.mamoe.mirai.utils.io.toUHexString

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.packet.login
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.writeFully import kotlinx.io.core.writeFully
import kotlinx.io.core.writeUByte import kotlinx.io.core.writeUByte
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.OnlineStatus import net.mamoe.mirai.utils.OnlineStatus

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.writeFully import kotlinx.io.core.writeFully
import net.mamoe.mirai.event.Subscribable import net.mamoe.mirai.event.Subscribable
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.writeHex import net.mamoe.mirai.utils.io.writeHex

View File

@ -3,10 +3,10 @@
package net.mamoe.mirai.timpc.network.packet.login package net.mamoe.mirai.timpc.network.packet.login
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.network.data.Gender import net.mamoe.mirai.data.Gender
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.LoginResult import net.mamoe.mirai.data.LoginResult
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.* import net.mamoe.mirai.utils.*

View File

@ -6,7 +6,7 @@ import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.discardExact import kotlinx.io.core.discardExact
import kotlinx.io.core.writeFully import kotlinx.io.core.writeFully
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -4,7 +4,7 @@ package net.mamoe.mirai.timpc.network.packet.login
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -7,7 +7,7 @@ import kotlinx.io.core.discardExact
import kotlinx.io.core.readBytes import kotlinx.io.core.readBytes
import kotlinx.io.core.writeFully import kotlinx.io.core.writeFully
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.Packet import net.mamoe.mirai.data.Packet
import net.mamoe.mirai.timpc.network.TIMProtocol import net.mamoe.mirai.timpc.network.TIMProtocol
import net.mamoe.mirai.timpc.network.packet.* import net.mamoe.mirai.timpc.network.packet.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*

View File

@ -8,10 +8,10 @@ import kotlinx.io.OutputStream
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import kotlinx.io.core.use import kotlinx.io.core.use
import net.mamoe.mirai.contact.* import net.mamoe.mirai.contact.*
import net.mamoe.mirai.data.AddFriendResult
import net.mamoe.mirai.data.ImageLink
import net.mamoe.mirai.message.data.Image import net.mamoe.mirai.message.data.Image
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import net.mamoe.mirai.network.data.AddFriendResult
import net.mamoe.mirai.network.data.ImageLink
import net.mamoe.mirai.utils.BotConfiguration import net.mamoe.mirai.utils.BotConfiguration
import net.mamoe.mirai.utils.GroupNotFoundException import net.mamoe.mirai.utils.GroupNotFoundException
import net.mamoe.mirai.utils.MiraiInternalAPI import net.mamoe.mirai.utils.MiraiInternalAPI

View File

@ -1,3 +1,5 @@
@file:Suppress("FunctionName")
package net.mamoe.mirai package net.mamoe.mirai
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
@ -10,7 +12,6 @@ import net.mamoe.mirai.utils.MiraiLogger
* - `mirai-core-timpc`: `TIMPC` * - `mirai-core-timpc`: `TIMPC`
* - `mirai-core-qqandroid`: `QQAndroid` * - `mirai-core-qqandroid`: `QQAndroid`
*/ */
@Suppress("FunctionName")
interface BotFactory { interface BotFactory {
/** /**
* 在当前 CoroutineScope 下构造 Bot 实例 * 在当前 CoroutineScope 下构造 Bot 实例

View File

@ -3,7 +3,7 @@
package net.mamoe.mirai.contact package net.mamoe.mirai.contact
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import net.mamoe.mirai.network.data.GroupInfo import net.mamoe.mirai.data.GroupInfo
import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail

View File

@ -4,9 +4,9 @@ package net.mamoe.mirai.contact
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.data.FriendNameRemark import net.mamoe.mirai.data.FriendNameRemark
import net.mamoe.mirai.network.data.PreviousNameList import net.mamoe.mirai.data.PreviousNameList
import net.mamoe.mirai.network.data.Profile import net.mamoe.mirai.data.Profile
/** /**
* QQ 对象. * QQ 对象.

View File

@ -2,7 +2,7 @@
@file:JvmName("BotHelperKt") @file:JvmName("BotHelperKt")
@file:Suppress("EXPERIMENTAL_API_USAGE") @file:Suppress("EXPERIMENTAL_API_USAGE")
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
import kotlin.jvm.JvmMultifileClass import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName import kotlin.jvm.JvmName

View File

@ -1,4 +1,4 @@
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
import net.mamoe.mirai.event.Subscribable import net.mamoe.mirai.event.Subscribable

View File

@ -1,4 +1,4 @@
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
/** /**
* 给好友设置的备注 * 给好友设置的备注

View File

@ -1,4 +1,4 @@
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
import net.mamoe.mirai.contact.ContactList import net.mamoe.mirai.contact.ContactList
import net.mamoe.mirai.contact.Group import net.mamoe.mirai.contact.Group

View File

@ -1,4 +1,4 @@
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
import io.ktor.client.request.get import io.ktor.client.request.get
import io.ktor.util.KtorExperimentalAPI import io.ktor.util.KtorExperimentalAPI

View File

@ -1,6 +1,6 @@
@file:Suppress("unused") @file:Suppress("unused")
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
import net.mamoe.mirai.utils.BotConfiguration import net.mamoe.mirai.utils.BotConfiguration

View File

@ -1,4 +1,4 @@
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
/** /**
* 一个包的数据 (body) * 一个包的数据 (body)

View File

@ -1,4 +1,4 @@
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
/** /**
* 曾用名列表 * 曾用名列表

View File

@ -1,6 +1,6 @@
@file:Suppress("EXPERIMENTAL_API_USAGE") @file:Suppress("EXPERIMENTAL_API_USAGE")
package net.mamoe.mirai.network.data package net.mamoe.mirai.data
import io.ktor.util.date.GMTDate import io.ktor.util.date.GMTDate

View File

@ -1,6 +1,6 @@
package net.mamoe.mirai.event.events package net.mamoe.mirai.event.events
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
/** /**
* 被挤下线. 只能获取到中文的消息 * 被挤下线. 只能获取到中文的消息

View File

@ -1,7 +1,7 @@
package net.mamoe.mirai.event.events package net.mamoe.mirai.event.events
import net.mamoe.mirai.contact.QQ import net.mamoe.mirai.contact.QQ
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.utils.OnlineStatus import net.mamoe.mirai.utils.OnlineStatus
data class FriendStatusChanged( data class FriendStatusChanged(

View File

@ -2,7 +2,7 @@ package net.mamoe.mirai.event.events
import net.mamoe.mirai.contact.Group import net.mamoe.mirai.contact.Group
import net.mamoe.mirai.contact.Member import net.mamoe.mirai.contact.Member
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
// region mute // region mute

View File

@ -1,7 +1,7 @@
package net.mamoe.mirai.event.events package net.mamoe.mirai.event.events
import net.mamoe.mirai.contact.QQ import net.mamoe.mirai.contact.QQ
import net.mamoe.mirai.network.data.EventPacket import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.utils.unsafeWeakRef import net.mamoe.mirai.utils.unsafeWeakRef
import kotlin.jvm.JvmOverloads import kotlin.jvm.JvmOverloads

View File

@ -5,10 +5,10 @@ package net.mamoe.mirai.message
import kotlinx.io.core.ByteReadPacket import kotlinx.io.core.ByteReadPacket
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.contact.* import net.mamoe.mirai.contact.*
import net.mamoe.mirai.data.EventPacket
import net.mamoe.mirai.data.ImageLink
import net.mamoe.mirai.event.events.BotEvent import net.mamoe.mirai.event.events.BotEvent
import net.mamoe.mirai.message.data.* import net.mamoe.mirai.message.data.*
import net.mamoe.mirai.network.data.EventPacket
import net.mamoe.mirai.network.data.ImageLink
import net.mamoe.mirai.utils.* import net.mamoe.mirai.utils.*
import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail
import kotlin.jvm.JvmName import kotlin.jvm.JvmName

View File

@ -1,6 +1,6 @@
package net.mamoe.mirai.utils package net.mamoe.mirai.utils
import net.mamoe.mirai.network.data.LoginResult import net.mamoe.mirai.data.LoginResult
class LoginFailedException( class LoginFailedException(
val result: LoginResult, val result: LoginResult,