fetchChannelItems
abstract suspend fun fetchChannelItems( channel: Channel, limit: Int = 10, beforeDate: Date?, afterDate: Date?): RainbowResult<List<IChannelItem>>
Fetch items from a specific channel.
This method retrieves items (posts) from the specified channel. The fetched items will be available both in the RainbowResult object and directly in the Channel object.
Return
A RainbowResult containing a list of IChannelItem objects representing the items (posts) in the channel. If the operation fails, the result will include error details.
Parameters
channel
The Channel object from which items (posts) are retrieved.
limit
An Int that specifies the maximum number of items to retrieve (default value is 10). This parameter controls the number of items returned in the response.
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).