fetchLatestItems
abstract suspend fun fetchLatestItems(limit: Int, beforeDate: Date?, afterDate: Date?): RainbowResult<List<IChannelItem>>
Fetch the latest items across all channels.
This method retrieves the most recent items (posts) across all available channels. The fetched items will be available in the RainbowResult object and directly in the corresponding Channel objects.
Return
A RainbowResult containing a list of IChannelItem objects representing the latest items across all channels. If the operation fails, the result will include error details.
Parameters
limit
An Int specifying the maximum number of items to retrieve (default value is 10).
beforeDate
An optional Date to retrieve items created before this date (ISO 8601 format).
afterDate
An optional Date to retrieve items created after this date (ISO 8601 format).