fetchMostRecentChannels

abstract suspend fun fetchMostRecentChannels(limit: Int = 100, offset: Int = 0): RainbowResult<List<Channel>>

Fetch the most recent channels.

This method retrieves the most recently created channels and returns them in a list. The response will contain channels created most recently, based on creation dates.

Return

A RainbowResult containing a list of Channel objects representing the most recent channels. If the operation fails, the result will include error details.

Parameters

limit

An Int specifying the maximum number of channels to retrieve (default value is 100). This parameter controls the number of channels returned in the response.

offset

An Int specifying the position of the first channel to retrieve (default value is 0). This is useful for pagination, where the first result is determined by the offset value.