Commit f322af71 authored by Him188's avatar Him188

Make protocol classes internal

parent f496c943
...@@ -14,8 +14,7 @@ import kotlinx.serialization.protobuf.ProtoId ...@@ -14,8 +14,7 @@ import kotlinx.serialization.protobuf.ProtoId
import net.mamoe.mirai.qqandroid.io.ProtoBuf import net.mamoe.mirai.qqandroid.io.ProtoBuf
import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
@Serializable internal class Generalflags : ProtoBuf {
class Generalflags : ProtoBuf {
@Serializable @Serializable
class ResvAttr( class ResvAttr(
@ProtoId(1) val globalGroupLevel: Int = 0, @ProtoId(1) val globalGroupLevel: Int = 0,
...@@ -84,7 +83,7 @@ class Generalflags : ProtoBuf { ...@@ -84,7 +83,7 @@ class Generalflags : ProtoBuf {
} }
@Serializable @Serializable
class ResvAttrForGiftMsg : ProtoBuf { internal class ResvAttrForGiftMsg : ProtoBuf {
@Serializable @Serializable
class ActivityGiftInfo( class ActivityGiftInfo(
@ProtoId(1) val isActivityGift: Int = 0, @ProtoId(1) val isActivityGift: Int = 0,
...@@ -106,13 +105,13 @@ class ResvAttrForGiftMsg : ProtoBuf { ...@@ -106,13 +105,13 @@ class ResvAttrForGiftMsg : ProtoBuf {
@ProtoId(4) val buttonFlag: Int = 0, @ProtoId(4) val buttonFlag: Int = 0,
@ProtoId(5) val objColor: Int = 0, @ProtoId(5) val objColor: Int = 0,
@ProtoId(6) val animationType: Int = 0, @ProtoId(6) val animationType: Int = 0,
@ProtoId(7) val msgInteractGift: ResvAttrForGiftMsg.InteractGift? = null, @ProtoId(7) val msgInteractGift: InteractGift? = null,
@ProtoId(8) val activityGiftInfo: ResvAttrForGiftMsg.ActivityGiftInfo? = null @ProtoId(8) val activityGiftInfo: ActivityGiftInfo? = null
) : ProtoBuf ) : ProtoBuf
} }
@Serializable @Serializable
class SourceMsg : ProtoBuf { internal class SourceMsg : ProtoBuf {
@Serializable @Serializable
class ResvAttr( class ResvAttr(
@ProtoId(1) val richMsg2: ByteArray? = null, @ProtoId(1) val richMsg2: ByteArray? = null,
...@@ -122,7 +121,7 @@ class SourceMsg : ProtoBuf { ...@@ -122,7 +121,7 @@ class SourceMsg : ProtoBuf {
} }
@Serializable @Serializable
class VideoFile : ProtoBuf { internal class VideoFile : ProtoBuf {
@Serializable @Serializable
class ResvAttr( class ResvAttr(
@ProtoId(1) val hotvideoIcon: ByteArray = EMPTY_BYTE_ARRAY, @ProtoId(1) val hotvideoIcon: ByteArray = EMPTY_BYTE_ARRAY,
......
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