mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
No more data class for ProtoBuf and JceStruct
This commit is contained in:
parent
7fff235aa9
commit
40f157978f
@ -103,7 +103,7 @@ internal class NetSegConf(
|
||||
|
||||
@Suppress("ArrayInDataClass")
|
||||
@Serializable
|
||||
internal data class PushReq(
|
||||
internal class PushReq(
|
||||
@JceId(1) val type: Int,
|
||||
@JceId(2) val jcebuf: ByteArray,
|
||||
@JceId(3) val seq: Long
|
||||
|
@ -17,7 +17,7 @@ import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
|
||||
|
||||
@Suppress("ArrayInDataClass")
|
||||
@Serializable
|
||||
internal data class RequestPushNotify(
|
||||
internal class RequestPushNotify(
|
||||
@JceId(0) val uin: Long? = 0L,
|
||||
@JceId(1) val ctype: Byte = 0,
|
||||
@JceId(2) val strService: String?,
|
||||
|
@ -78,7 +78,7 @@ internal class Cmd0x352 : ProtoBuf {
|
||||
|
||||
@Suppress("ArrayInDataClass")
|
||||
@Serializable
|
||||
data class ImgInfo(
|
||||
class ImgInfo(
|
||||
@ProtoId(1) val fileMd5: ByteArray = EMPTY_BYTE_ARRAY,
|
||||
@ProtoId(2) val fileType: Int = 0,
|
||||
@ProtoId(3) val fileSize: Long = 0L,
|
||||
|
@ -147,7 +147,7 @@ internal class Cmd0x388 : ProtoBuf {
|
||||
|
||||
@Suppress("ArrayInDataClass")
|
||||
@Serializable
|
||||
data class ImgInfo(
|
||||
class ImgInfo(
|
||||
@ProtoId(1) val fileMd5: ByteArray = EMPTY_BYTE_ARRAY,
|
||||
@ProtoId(2) val fileType: Int = 0,
|
||||
@ProtoId(3) val fileSize: Long = 0L,
|
||||
|
@ -664,7 +664,7 @@ internal class ImMsgBody : ProtoBuf {
|
||||
) : ProtoBuf
|
||||
|
||||
@Serializable // 非官方.
|
||||
internal data class PbReserve(
|
||||
internal class PbReserve(
|
||||
@ProtoId(1) val unknown1: Int = 1,
|
||||
@ProtoId(2) val unknown2: Int = 0,
|
||||
@ProtoId(6) val unknown3: Int = 0,
|
||||
@ -1142,7 +1142,7 @@ internal class ImReceipt : ProtoBuf {
|
||||
) : ProtoBuf
|
||||
|
||||
@Serializable
|
||||
internal data class ReceiptResp(
|
||||
internal class ReceiptResp(
|
||||
@ProtoId(1) val command: Int /* enum */ = 1,
|
||||
@ProtoId(2) val receiptInfo: ReceiptInfo? = null
|
||||
) : ProtoBuf
|
||||
|
@ -112,7 +112,7 @@ internal class MsgSvc : ProtoBuf {
|
||||
) : ProtoBuf
|
||||
|
||||
@Serializable
|
||||
internal data class MsgSendInfo(
|
||||
internal class MsgSendInfo(
|
||||
@ProtoId(1) val receiver: Int = 0
|
||||
) : ProtoBuf
|
||||
|
||||
@ -456,7 +456,7 @@ internal class MsgSvc : ProtoBuf {
|
||||
) : ProtoBuf
|
||||
|
||||
@Serializable
|
||||
internal data class PbSendMsgResp(
|
||||
internal class PbSendMsgResp(
|
||||
@ProtoId(1) val result: Int = 0,
|
||||
@ProtoId(2) val errmsg: String = "",
|
||||
@ProtoId(3) val sendTime: Int = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user