Commit b7be5b0b authored by Him188's avatar Him188

Add comments

parent 2bf0a963
...@@ -123,6 +123,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() { ...@@ -123,6 +123,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
@SerialId(5) val const2: Short = 0x0E2D, @SerialId(5) val const2: Short = 0x0E2D,
@SerialId(6) val const3: ByteArray = constValue3, @SerialId(6) val const3: ByteArray = constValue3,
@SerialId(7) val const4: Byte = 1, @SerialId(7) val const4: Byte = 1,
// 8 is missing
@SerialId(9) val const5: Byte = 1, @SerialId(9) val const5: Byte = 1,
@SerialId(10) val width: Int, @SerialId(10) val width: Int,
@SerialId(11) val height: Int, @SerialId(11) val height: Int,
...@@ -160,6 +161,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() { ...@@ -160,6 +161,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
@SerialId(16) val height: Int, @SerialId(16) val height: Int,
@SerialId(17) val width: Int, @SerialId(17) val width: Int,
@SerialId(18) val const12: Int = 1003, //?? 有时候还是1000, 1004 @SerialId(18) val const12: Int = 1003, //?? 有时候还是1000, 1004
// 19 is missing
@SerialId(20) val const13: Byte = 1 @SerialId(20) val const13: Byte = 1
) )
} }
...@@ -209,7 +211,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() { ...@@ -209,7 +211,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
protoObj = RequestLinkProto( protoObj = RequestLinkProto(
body = RequestLinkProto.Body( body = RequestLinkProto.Body(
bot = bot.toInt(), // same bin representation, so will be decoded correctly as a unsigned value in the server bot = bot.toInt(), // same bin representation, so will be decoded correctly as a unsigned value in the server
group = bot.toInt(), group = bot.toInt(), // it's no need to pass a real group (internal) id
uniqueId = imageId.uniqueId.toInt(), uniqueId = imageId.uniqueId.toInt(),
md5 = imageId.md5, md5 = imageId.md5,
height = imageId.height, height = imageId.height,
......
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