public class ChannelNormalizer extends Object
Responsibilities: - normalizeMessage delegates to the message pipeline - normalizeCardAction / normalizeReaction / normalizeBotAdded / normalizeComment stay as event normalizers - build*DedupKey delegates to the dedicated dedup helper
| 构造器和说明 |
|---|
ChannelNormalizer() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildCardActionDedupKey(CardActionEvent event) |
String |
buildCommentDedupKey(CommentEvent event) |
String |
buildMessageDedupKey(NormalizedMessage event) |
String |
buildReactionDedupKey(ReactionEvent event) |
BotAddedEvent |
normalizeBotAdded(P2ChatMemberBotAddedV1 event) |
CardActionEvent |
normalizeCardAction(P2CardActionTrigger event) |
CommentEvent |
normalizeComment(com.google.gson.JsonObject payload,
Object raw) |
NormalizedMessage |
normalizeMessage(P2MessageReceiveV1 event,
NormalizeOptions options) |
ReactionEvent |
normalizeReaction(P2MessageReactionCreatedV1 event,
String action) |
ReactionEvent |
normalizeReaction(P2MessageReactionDeletedV1 event,
String action) |
public NormalizedMessage normalizeMessage(P2MessageReceiveV1 event, NormalizeOptions options)
public ReactionEvent normalizeReaction(P2MessageReactionCreatedV1 event, String action)
public ReactionEvent normalizeReaction(P2MessageReactionDeletedV1 event, String action)
public CardActionEvent normalizeCardAction(P2CardActionTrigger event)
public BotAddedEvent normalizeBotAdded(P2ChatMemberBotAddedV1 event)
public CommentEvent normalizeComment(com.google.gson.JsonObject payload, Object raw)
public String buildCardActionDedupKey(CardActionEvent event)
public String buildReactionDedupKey(ReactionEvent event)
public String buildMessageDedupKey(NormalizedMessage event)
public String buildCommentDedupKey(CommentEvent event)
Copyright © 2026. All rights reserved.