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
592d328e
Commit
592d328e
authored
Jan 30, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make internal
parent
e6be82fa
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
261 additions
and
261 deletions
+261
-261
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/PushNotifyPack.kt
...rai/qqandroid/network/protocol/data/jce/PushNotifyPack.kt
+5
-4
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/RequestPacket.kt
...irai/qqandroid/network/protocol/data/jce/RequestPacket.kt
+4
-4
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/SvcReqRegister.kt
...rai/qqandroid/network/protocol/data/jce/SvcReqRegister.kt
+1
-2
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/FriendListCommon.kt
...qqandroid/network/protocol/data/proto/FriendListCommon.kt
+12
-12
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/ImageRequest.kt
...rai/qqandroid/network/protocol/data/proto/ImageRequest.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
+122
-122
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/MsgCommon.kt
.../mirai/qqandroid/network/protocol/data/proto/MsgCommon.kt
+14
-14
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
+100
-100
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/OnlinePush.kt
...mirai/qqandroid/network/protocol/data/proto/OnlinePush.kt
+2
-2
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/PushNotifyPack.kt
View file @
592d328e
...
...
@@ -25,8 +25,9 @@ internal data class RequestPushNotify(
@SerialId
(
13
)
val
svrip
:
Int
?
)
:
JceStruct
,
Packet
@Suppress
(
"ArrayInDataClass"
)
@Serializable
internal
class
MsgInfo
(
internal
data
class
MsgInfo
(
@SerialId
(
0
)
val
lFromUin
:
Long
=
0L
,
@SerialId
(
1
)
val
uMsgTime
:
Long
=
0L
,
@SerialId
(
2
)
val
shMsgType
:
Short
,
...
...
@@ -51,7 +52,7 @@ internal class MsgInfo(
@Serializable
class
ShareData
(
internal
class
ShareData
(
@SerialId
(
0
)
val
pkgname
:
String
=
""
,
@SerialId
(
1
)
val
msgtail
:
String
=
""
,
@SerialId
(
2
)
val
picurl
:
String
=
""
,
...
...
@@ -59,13 +60,13 @@ class ShareData(
)
:
JceStruct
@Serializable
class
TempMsgHead
(
internal
class
TempMsgHead
(
@SerialId
(
0
)
val
c2c_type
:
Int
?
=
0
,
@SerialId
(
1
)
val
serviceType
:
Int
?
=
0
)
:
JceStruct
@Serializable
class
CPicInfo
(
internal
class
CPicInfo
(
@SerialId
(
0
)
val
vPath
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
@SerialId
(
1
)
val
vHost
:
ByteArray
?
=
EMPTY_BYTE_ARRAY
)
:
JceStruct
\ No newline at end of file
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/RequestPacket.kt
View file @
592d328e
...
...
@@ -8,7 +8,7 @@ import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
private
val
EMPTY_MAP
=
mapOf
<
String
,
String
>()
@Serializable
class
RequestPacket
(
internal
class
RequestPacket
(
@SerialId
(
1
)
val
iVersion
:
Short
=
3
,
@SerialId
(
2
)
val
cPacketType
:
Byte
=
0
,
@SerialId
(
3
)
val
iMessageType
:
Int
=
0
,
...
...
@@ -22,16 +22,16 @@ class RequestPacket(
)
:
JceStruct
@Serializable
class
RequestDataVersion3
(
internal
class
RequestDataVersion3
(
@SerialId
(
0
)
val
map
:
Map
<
String
,
ByteArray
>
// 注意: ByteArray 不能直接放序列化的 JceStruct!! 要放类似 RequestDataStructSvcReqRegister 的
)
:
JceStruct
@Serializable
class
RequestDataVersion2
(
internal
class
RequestDataVersion2
(
@SerialId
(
0
)
val
map
:
Map
<
String
,
Map
<
String
,
ByteArray
>>
)
:
JceStruct
@Serializable
class
RequestDataStructSvcReqRegister
(
internal
class
RequestDataStructSvcReqRegister
(
@SerialId
(
0
)
val
struct
:
SvcReqRegister
)
:
JceStruct
\ No newline at end of file
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/SvcReqRegister.kt
View file @
592d328e
package
net.mamoe.mirai.qqandroid.network.protocol.data.jce
import
kotlinx.serialization.Polymorphic
import
kotlinx.serialization.SerialId
import
kotlinx.serialization.Serializable
import
net.mamoe.mirai.qqandroid.io.JceStruct
@Serializable
class
SvcReqRegister
(
internal
class
SvcReqRegister
(
@SerialId
(
0
)
val
lUin
:
Long
=
0L
,
@SerialId
(
1
)
val
lBid
:
Long
=
0L
,
@SerialId
(
2
)
val
cConnType
:
Byte
=
0
,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/FriendListCommon.kt
View file @
592d328e
...
...
@@ -6,9 +6,9 @@ import net.mamoe.mirai.qqandroid.io.ProtoBuf
import
net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
@Serializable
class
Vec0xd50
:
ProtoBuf
{
internal
class
Vec0xd50
:
ProtoBuf
{
@Serializable
class
ExtSnsFrdData
(
internal
class
ExtSnsFrdData
(
@SerialId
(
1
)
val
frdUin
:
Long
=
0L
,
@SerialId
(
91001
)
val
musicSwitch
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
@SerialId
(
101001
)
val
mutualmarkAlienation
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
...
...
@@ -18,7 +18,7 @@ class Vec0xd50 : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
RspBody
(
internal
class
RspBody
(
@SerialId
(
1
)
val
msgUpdateData
:
List
<
Vec0xd50
.
ExtSnsFrdData
>?
=
null
,
@SerialId
(
11
)
val
over
:
Int
=
0
,
@SerialId
(
12
)
val
nextStart
:
Int
=
0
,
...
...
@@ -26,7 +26,7 @@ class Vec0xd50 : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
ReqBody
(
internal
class
ReqBody
(
@SerialId
(
1
)
val
appid
:
Long
=
0L
,
@SerialId
(
2
)
val
maxPkgSize
:
Int
=
0
,
@SerialId
(
3
)
val
startTime
:
Int
=
0
,
...
...
@@ -41,28 +41,28 @@ class Vec0xd50 : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
KSingRelationInfo
(
internal
class
KSingRelationInfo
(
@SerialId
(
1
)
val
flag
:
Int
=
0
)
:
ProtoBuf
}
@Serializable
class
Vec0xd6b
:
ProtoBuf
{
internal
class
Vec0xd6b
:
ProtoBuf
{
@Serializable
class
ReqBody
(
internal
class
ReqBody
(
@SerialId
(
1
)
val
maxPkgSize
:
Int
=
0
,
@SerialId
(
2
)
val
startTime
:
Int
=
0
,
@SerialId
(
11
)
val
uinList
:
List
<
Long
>?
=
null
)
:
ProtoBuf
@Serializable
class
RspBody
(
internal
class
RspBody
(
@SerialId
(
11
)
val
msgMutualmarkData
:
List
<
Vec0xd6b
.
MutualMarkData
>?
=
null
,
@SerialId
(
12
)
val
uint64UnfinishedUins
:
List
<
Long
>?
=
null
)
:
ProtoBuf
@Serializable
class
MutualMarkData
(
internal
class
MutualMarkData
(
@SerialId
(
1
)
val
frdUin
:
Long
=
0L
,
@SerialId
(
2
)
val
result
:
Int
=
0
// @SerialId(11) val mutualmarkInfo: List<Mutualmark.MutualMark>? = null
...
...
@@ -70,9 +70,9 @@ class Vec0xd6b : ProtoBuf {
}
@Serializable
class
Mutualmark
:
ProtoBuf
{
internal
class
Mutualmark
:
ProtoBuf
{
@Serializable
class
MutualmarkInfo
(
internal
class
MutualmarkInfo
(
@SerialId
(
1
)
val
lastActionTime
:
Long
=
0L
,
@SerialId
(
2
)
val
level
:
Int
=
0
,
@SerialId
(
3
)
val
lastChangeTime
:
Long
=
0L
,
...
...
@@ -86,7 +86,7 @@ class Mutualmark : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
ResourceInfo17
(
internal
class
ResourceInfo17
(
@SerialId
(
1
)
val
dynamicUrl
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
@SerialId
(
2
)
val
staticUrl
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
@SerialId
(
3
)
val
cartoonUrl
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/ImageRequest.kt
View file @
592d328e
...
...
@@ -2,8 +2,8 @@ package net.mamoe.mirai.qqandroid.network.protocol.data.proto
import
kotlinx.serialization.SerialId
import
kotlinx.serialization.Serializable
import
net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
import
net.mamoe.mirai.qqandroid.io.ProtoBuf
import
net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
import
net.mamoe.mirai.utils.currentTimeSeconds
interface
ImgReq
:
ProtoBuf
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/Msg.kt
View file @
592d328e
This diff is collapsed.
Click to expand it.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/MsgCommon.kt
View file @
592d328e
...
...
@@ -9,16 +9,16 @@ import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
* msf.msgcomm.msg_comm
*/
@Serializable
class
MsgComm
:
ProtoBuf
{
internal
class
MsgComm
:
ProtoBuf
{
@Serializable
class
AppShareInfo
(
internal
class
AppShareInfo
(
@SerialId
(
1
)
val
appshareId
:
Int
=
0
,
@SerialId
(
2
)
val
appshareCookie
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
@SerialId
(
3
)
val
appshareResource
:
PluginInfo
?
=
null
)
:
ProtoBuf
@Serializable
class
C2CTmpMsgHead
(
internal
class
C2CTmpMsgHead
(
@SerialId
(
1
)
val
c2cType
:
Int
=
0
,
@SerialId
(
2
)
val
serviceType
:
Int
=
0
,
@SerialId
(
3
)
val
groupUin
:
Long
=
0L
,
...
...
@@ -33,7 +33,7 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
ContentHead
(
internal
class
ContentHead
(
@SerialId
(
1
)
val
pkgNum
:
Int
=
0
,
@SerialId
(
2
)
val
pkgIndex
:
Int
=
0
,
@SerialId
(
3
)
val
divSeq
:
Int
=
0
,
...
...
@@ -41,7 +41,7 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
DiscussInfo
(
internal
class
DiscussInfo
(
@SerialId
(
1
)
val
discussUin
:
Long
=
0L
,
@SerialId
(
2
)
val
discussType
:
Int
=
0
,
@SerialId
(
3
)
val
discussInfoSeq
:
Long
=
0L
,
...
...
@@ -50,13 +50,13 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
ExtGroupKeyInfo
(
internal
class
ExtGroupKeyInfo
(
@SerialId
(
1
)
val
curMaxSeq
:
Int
=
0
,
@SerialId
(
2
)
val
curTime
:
Long
=
0L
)
:
ProtoBuf
@Serializable
class
GroupInfo
(
internal
class
GroupInfo
(
@SerialId
(
1
)
val
groupCode
:
Long
=
0L
,
@SerialId
(
2
)
val
groupType
:
Int
=
0
,
@SerialId
(
3
)
val
groupInfoSeq
:
Long
=
0L
,
...
...
@@ -68,7 +68,7 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
Msg
(
internal
class
Msg
(
@SerialId
(
1
)
val
msgHead
:
MsgHead
,
@SerialId
(
2
)
val
contentHead
:
ContentHead
?
=
null
,
@SerialId
(
3
)
val
msgBody
:
ImMsgBody
.
MsgBody
,
...
...
@@ -76,7 +76,7 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
MsgHead
(
internal
class
MsgHead
(
@SerialId
(
1
)
val
fromUin
:
Long
=
0L
,
@SerialId
(
2
)
val
toUin
:
Long
=
0L
,
@SerialId
(
3
)
val
msgType
:
Int
=
0
,
...
...
@@ -108,19 +108,19 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
MsgType0x210
(
internal
class
MsgType0x210
(
@SerialId
(
1
)
val
subMsgType
:
Int
=
0
,
@SerialId
(
2
)
val
msgContent
:
ByteArray
=
EMPTY_BYTE_ARRAY
)
:
ProtoBuf
@Serializable
class
MutilTransHead
(
internal
class
MutilTransHead
(
@SerialId
(
1
)
val
status
:
Int
=
0
,
@SerialId
(
2
)
val
msgId
:
Int
=
0
)
:
ProtoBuf
@Serializable
class
PluginInfo
(
internal
class
PluginInfo
(
@SerialId
(
1
)
val
resId
:
Int
=
0
,
@SerialId
(
2
)
val
pkgName
:
String
=
""
,
@SerialId
(
3
)
val
newVer
:
Int
=
0
,
...
...
@@ -135,13 +135,13 @@ class MsgComm : ProtoBuf {
)
:
ProtoBuf
@Serializable
class
Uin2Nick
(
internal
class
Uin2Nick
(
@SerialId
(
1
)
val
uin
:
Long
=
0L
,
@SerialId
(
2
)
val
nick
:
String
=
""
)
:
ProtoBuf
@Serializable
class
UinPairMsg
(
internal
class
UinPairMsg
(
@SerialId
(
1
)
val
lastReadTime
:
Int
=
0
,
@SerialId
(
2
)
val
peerUin
:
Long
=
0L
,
@SerialId
(
3
)
val
msgCompleted
:
Int
=
0
,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/MsgSvc.kt
View file @
592d328e
This diff is collapsed.
Click to expand it.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/proto/OnlinePush.kt
View file @
592d328e
...
...
@@ -6,9 +6,9 @@ import net.mamoe.mirai.qqandroid.io.ProtoBuf
import
net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
@Serializable
class
MsgOnlinePush
{
internal
class
MsgOnlinePush
{
@Serializable
class
PbPushMsg
(
internal
class
PbPushMsg
(
@SerialId
(
1
)
val
msg
:
MsgComm
.
Msg
,
@SerialId
(
2
)
val
svrip
:
Int
=
0
,
@SerialId
(
3
)
val
pushToken
:
ByteArray
=
EMPTY_BYTE_ARRAY
,
...
...
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