Skip to content

Commit 3c38393

Browse files
committed
dumpApi
1 parent 2eda283 commit 3c38393

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

simbot-component-onebot-v11/simbot-component-onebot-v11-core/api/simbot-component-onebot-v11-core.api

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,6 +2125,29 @@ public final class love/forte/simbot/component/onebot/v11/core/component/OneBot1
21252125
public static synthetic fun useOneBot11Component$default (Llove/forte/simbot/application/ApplicationFactoryConfigurer;Llove/forte/simbot/common/function/ConfigurerFunction;ILjava/lang/Object;)V
21262126
}
21272127

2128+
public class love/forte/simbot/component/onebot/v11/core/event/CustomEventResolveException : java/lang/RuntimeException {
2129+
public fun <init> ()V
2130+
public fun <init> (Ljava/lang/String;)V
2131+
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
2132+
public fun <init> (Ljava/lang/Throwable;)V
2133+
}
2134+
2135+
public abstract interface class love/forte/simbot/component/onebot/v11/core/event/CustomEventResolver$Context {
2136+
public abstract fun getBot ()Llove/forte/simbot/component/onebot/v11/core/bot/OneBotBot;
2137+
public abstract fun getJson ()Lkotlinx/serialization/json/Json;
2138+
public abstract fun getRawEventResolveResult ()Llove/forte/simbot/component/onebot/v11/core/event/RawEventResolveResult;
2139+
}
2140+
2141+
public class love/forte/simbot/component/onebot/v11/core/event/EventResolveException : java/lang/RuntimeException {
2142+
public fun <init> ()V
2143+
public fun <init> (Ljava/lang/String;)V
2144+
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
2145+
public fun <init> (Ljava/lang/Throwable;)V
2146+
}
2147+
2148+
public abstract interface annotation class love/forte/simbot/component/onebot/v11/core/event/ExperimentalCustomEventResolverApi : java/lang/annotation/Annotation {
2149+
}
2150+
21282151
public abstract interface class love/forte/simbot/component/onebot/v11/core/event/OneBotBotEvent : love/forte/simbot/component/onebot/v11/core/event/OneBotEvent, love/forte/simbot/event/BotEvent {
21292152
public abstract fun getBot ()Llove/forte/simbot/component/onebot/v11/core/bot/OneBotBot;
21302153
}

simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal/OneBotBotImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ private data class CustomEventResolverContextImpl(
756756
/**
757757
* 解析数据包字符串为 [Event]。
758758
*/
759+
@ExperimentalCustomEventResolverApi
759760
internal fun OneBotBotImpl.resolveRawEvent(text: String): RawEventResolveResult {
760761
val obj = OneBot11.DefaultJson.decodeFromString(JsonObject.serializer(), text)
761762

simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal/RawEventResolveResultImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package love.forte.simbot.component.onebot.v11.core.bot.internal
22

33
import kotlinx.serialization.json.JsonObject
44
import love.forte.simbot.common.id.LongID
5+
import love.forte.simbot.component.onebot.v11.core.event.ExperimentalCustomEventResolverApi
56
import love.forte.simbot.component.onebot.v11.core.event.RawEventResolveResult
67
import love.forte.simbot.component.onebot.v11.event.RawEvent
78

@@ -10,6 +11,7 @@ import love.forte.simbot.component.onebot.v11.event.RawEvent
1011
*
1112
* @author ForteScarlet
1213
*/
14+
@ExperimentalCustomEventResolverApi
1315
internal data class RawEventResolveResultImpl(
1416
override val text: String,
1517
override val json: JsonObject,

simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/event/RawEventResolveResult.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import love.forte.simbot.component.onebot.v11.event.RawEvent
1010
* @since 1.8.0
1111
* @author ForteScarlet
1212
*/
13+
@ExperimentalCustomEventResolverApi
1314
public interface RawEventResolveResult {
1415
/**
1516
* 原始的事件JSON字符串文本。

simbot-component-onebot-v11/simbot-component-onebot-v11-event/api/simbot-component-onebot-v11-event.api

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ public abstract interface class love/forte/simbot/component/onebot/v11/event/Raw
44
public abstract fun getTime ()J
55
}
66

7+
public class love/forte/simbot/component/onebot/v11/event/RawEventDeserializationException : java/lang/RuntimeException {
8+
public fun <init> ()V
9+
public fun <init> (Ljava/lang/String;)V
10+
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
11+
public fun <init> (Ljava/lang/Throwable;)V
12+
}
13+
714
public final class love/forte/simbot/component/onebot/v11/event/UnknownEvent : love/forte/simbot/component/onebot/v11/event/RawEvent {
815
public fun equals (Ljava/lang/Object;)Z
916
public fun getPostType ()Ljava/lang/String;

0 commit comments

Comments
 (0)