Package ai.nexconn.chatui.config
Class BaseDataProcessor
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.config.DataProcessor
public abstract class BaseDataProcessor<T> implements DataProcessor<T>
Abstract base implementation of DataProcessor.
Supports all major channel types by default. Override individual methods to customize filtering or gathered-display behavior.
-
-
Constructor Summary
Constructors Constructor Description BaseDataProcessor()
-
Method Summary
Modifier and Type Method Description Array<ChannelType>supportedTypes()Returns the channel types supported by this data processor. List<T>filtered(List<T> data)Filters the raw channel data before it is displayed in the channel list. booleanisGathered(ChannelType type)Returns whether a channel type is displayed in aggregated (gathered) mode. -
-
Method Detail
-
supportedTypes
Array<ChannelType> supportedTypes()
Returns the channel types supported by this data processor.
- Returns:
array of supported ai.nexconn.chat.channel.ChannelType values
-
filtered
List<T> filtered(List<T> data)
Filters the raw channel data before it is displayed in the channel list.
Called both when bulk-fetching channels from the database and when a new channel is created from an incoming real-time message.
- Parameters:
data- raw channel list to filter- Returns:
filtered channel list
-
isGathered
boolean isGathered(ChannelType type)
Returns whether a channel type is displayed in aggregated (gathered) mode.
- Parameters:
type- channel type to check- Returns:
trueif the type is gathered;falseotherwise
-
-
-
-