Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
40f15797
Commit
40f15797
authored
Mar 21, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No more data class for ProtoBuf and JceStruct
parent
7fff235a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/ConfigPush.kt
...e/mirai/qqandroid/network/protocol/data/jce/ConfigPush.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/PushNotifyPack.kt
...rai/qqandroid/network/protocol/data/jce/PushNotifyPack.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Cmd0x352.kt
...e/mirai/qqandroid/network/protocol/data/proto/Cmd0x352.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Cmd0x388.kt
...e/mirai/qqandroid/network/protocol/data/proto/Cmd0x388.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Msg.kt
.../mamoe/mirai/qqandroid/network/protocol/data/proto/Msg.kt
+2
-2
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/MsgSvc.kt
...moe/mirai/qqandroid/network/protocol/data/proto/MsgSvc.kt
+2
-2
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/ConfigPush.kt
View file @
40f15797
...
...
@@ -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
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/PushNotifyPack.kt
View file @
40f15797
...
...
@@ -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
?,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Cmd0x352.kt
View file @
40f15797
...
...
@@ -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
,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Cmd0x388.kt
View file @
40f15797
...
...
@@ -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
,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Msg.kt
View file @
40f15797
...
...
@@ -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
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/MsgSvc.kt
View file @
40f15797
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment