Commit 94557a2a authored by Him188's avatar Him188

Reduce nesting depth, also fix #173

parent c64156bd
...@@ -63,7 +63,9 @@ internal class GroupImpl( ...@@ -63,7 +63,9 @@ internal class GroupImpl(
groupInfo: GroupInfo, groupInfo: GroupInfo,
members: Sequence<MemberInfo> members: Sequence<MemberInfo>
) : Group() { ) : Group() {
companion object; companion object
val lastRecalledMessageRandoms: LockFreeLinkedList<Int> = LockFreeLinkedList()
override val bot: QQAndroidBot by bot.unsafeWeakRef() override val bot: QQAndroidBot by bot.unsafeWeakRef()
......
...@@ -25,12 +25,6 @@ interface Packet { ...@@ -25,12 +25,6 @@ interface Packet {
} }
*/ */
internal object NoPacket : Packet {
override fun toString(): String {
return "NoPacket"
}
}
/** /**
* PacketFactory 可以一次解析多个包出来. 它们将会被分别广播. * PacketFactory 可以一次解析多个包出来. 它们将会被分别广播.
*/ */
......
...@@ -42,7 +42,7 @@ internal class MsgInfo( ...@@ -42,7 +42,7 @@ internal class MsgInfo(
@JceId(3) val shMsgSeq: Short, @JceId(3) val shMsgSeq: Short,
@JceId(4) val strMsg: String?, @JceId(4) val strMsg: String?,
@JceId(5) val uRealMsgTime: Int?, @JceId(5) val uRealMsgTime: Int?,
@JceId(6) val vMsg: ByteArray?, @JceId(6) val vMsg: ByteArray,
@JceId(7) val uAppShareID: Long?, @JceId(7) val uAppShareID: Long?,
@JceId(8) val vMsgCookies: ByteArray? = EMPTY_BYTE_ARRAY, @JceId(8) val vMsgCookies: ByteArray? = EMPTY_BYTE_ARRAY,
@JceId(9) val vAppShareCookie: ByteArray? = EMPTY_BYTE_ARRAY, @JceId(9) val vAppShareCookie: ByteArray? = EMPTY_BYTE_ARRAY,
......
...@@ -29,13 +29,13 @@ internal class MsgOnlinePush { ...@@ -29,13 +29,13 @@ internal class MsgOnlinePush {
@Serializable @Serializable
internal class OnlinePushTrans : ProtoBuf { internal class OnlinePushTrans : ProtoBuf {
@Serializable @Serializable
internal class ExtGroupKeyInfo( internal class ExtGroupKeyInfo(
@ProtoId(1) val curMaxSeq: Int = 0, @ProtoId(1) val curMaxSeq: Int = 0,
@ProtoId(2) val curTime: Long = 0L @ProtoId(2) val curTime: Long = 0L
) : ProtoBuf ) : ProtoBuf
@Serializable @Serializable
internal class PbMsgInfo( internal class PbMsgInfo(
@ProtoId(1) val fromUin: Long = 0L, @ProtoId(1) val fromUin: Long = 0L,
@ProtoId(2) val toUin: Long = 0L, @ProtoId(2) val toUin: Long = 0L,
@ProtoId(3) val msgType: Int = 0, @ProtoId(3) val msgType: Int = 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment