fetch Channel Items
abstract fun fetchChannelItems(channel: Channel, limit: Int = 10, beforeDate: Date? = null, afterDate: Date? = null, listener: RainbowListener<List<IChannelItem>, Unit>?)
Fetch items from a specific channel
When the fetch resolved, channel items are available both in listener onSuccess callback and directly in the Channel object.
Parameters
channel
The Channel object whose items are retrieved
limit
Int that allow to specify the number of channel items to retrieve (default value 10)
before Date
Optional date to retrieve items before this date (iso 8601 format)
after Date
Optional date to retrieve items before this date (iso 8601 format)
listener
RainbowListener, Unit> callback (onSuccess, onError)