Add OfflineAnnouncement.serializer

This commit is contained in:
Him188 2021-07-05 15:00:11 +08:00
parent b319e2bc5c
commit 1abfcf4317

View File

@ -31,6 +31,9 @@ public sealed interface OfflineAnnouncement : Announcement {
public companion object {
public const val SERIAL_NAME: String = "OfflineAnnouncement"
@JvmStatic
public fun serializer(): KSerializer<OfflineAnnouncement> = Serializer
/**
* 创建 [OfflineAnnouncement]. [announcement] 类型为 [OfflineAnnouncement] 则直接返回 [announcement].
*/