-
public interface ModerationConfigListA class representing a paginated list of moderation configurations.
// Create a moderation config list with a specific query val query = ModerationConfigsQuery() val moderationConfigList = feedsClient.moderationConfigList(query) // Fetch initial moderation configurations matching the query val configs = moderationConfigList.get() // Load more configurations if available if (moderationConfigList.state.canLoadMore) { val moreConfigs = moderationConfigList.queryMoreConfigs() } // Observe state changes moderationConfigList.state.configs.collect { configs -> println("Updated moderation configurations: ${configs.size}") }
-
-
Method Summary
Modifier and Type Method Description abstract Result<List<ModerationConfigData>>get()Fetches the initial set of moderation configurations. abstract Result<List<ModerationConfigData>>queryMoreConfigs(Integer limit)Loads the next page of configurations if more are available. abstract ModerationConfigsQuerygetQuery()The query configuration used to fetch configurations. abstract ModerationConfigListStategetState()An observable object representing the current state of the configuration list. -
-
Method Detail
-
get
abstract Result<List<ModerationConfigData>> get()
Fetches the initial set of moderation configurations.
This method retrieves the first page of configurations based on the query configuration. The results are automatically stored in the state and can be accessed through the state.configs property.
-
queryMoreConfigs
abstract Result<List<ModerationConfigData>> queryMoreConfigs(Integer limit)
Loads the next page of configurations if more are available.
This method fetches additional configurations using the pagination information from the previous request. If no more configurations are available, an empty array is returned.
-
getQuery
abstract ModerationConfigsQuery getQuery()
The query configuration used to fetch configurations.
-
getState
abstract ModerationConfigListState getState()
An observable object representing the current state of the configuration list.
This property provides access to the current configurations, pagination information, and real-time updates. The state automatically updates when WebSocket events are received for configuration additions, updates, and deletions.
-
-
-
-