Class SendActionBarApi
java.lang.Object
io.github.theword.queqiao.core.api.Api<MessagePayload,Void>
io.github.theword.queqiao.core.api.PlatformApi<MessagePayload,Void>
io.github.theword.queqiao.core.api.SendActionBarApi
发送 ActionBar
协议名:send_actionbar。
平台未实现时 AbstractPlatformContext#sendActionBarComponent 返回
PlatformResultCode.UNSUPPORTED,由 Api.mapPlatformResult(io.github.theword.queqiao.core.platform.PlatformResult<?>) 统一映射为 503
——与迁移前直接抛出 503 的行为一致。
-
Field Summary
Fields inherited from class io.github.theword.queqiao.core.api.PlatformApi
platform -
Constructor Summary
ConstructorsConstructorDescriptionSendActionBarApi(org.slf4j.Logger logger, AbstractPlatformContext<?, ?, ?> platform) -
Method Summary
Modifier and TypeMethodDescriptionprotected VoiddoExecute(MessagePayload payload) 处理已经解析好的负载name()协议api字段的主名字,例如"broadcast"Methods inherited from class io.github.theword.queqiao.core.api.Api
aliases, execute, mapPlatformResult, requireSuccess
-
Constructor Details
-
SendActionBarApi
-
-
Method Details
-
name
Description copied from class:Api协议api字段的主名字,例如"broadcast"- Specified by:
namein classApi<MessagePayload,Void> - Returns:
- api 名字
-
doExecute
Description copied from class:Api处理已经解析好的负载- Specified by:
doExecutein classApi<MessagePayload,Void> - Parameters:
payload- 负载,永不为 null- Returns:
- 处理结果
- Throws:
ProtocolException- 处理失败
-