Commit 8180098a authored by Him188's avatar Him188

Add interface NoLog

parent 6504283d
...@@ -12,9 +12,14 @@ package net.mamoe.mirai.data ...@@ -12,9 +12,14 @@ package net.mamoe.mirai.data
/** /**
* 从服务器收到的包解析之后的结构化数据. * 从服务器收到的包解析之后的结构化数据.
*/ */
interface Packet interface Packet {
/**
* 实现这个接口的包将不会被记录到日志中
*/
interface NoLog
}
object NoPacket : Packet{ object NoPacket : Packet {
override fun toString(): String { override fun toString(): String {
return "NoPacket" return "NoPacket"
} }
......
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