createFlow
inline fun GetThreadListApi.Factory.createFlow(channelId: String, categoryId: String? = null, sort: Int? = null, pageSize: Int? = null, crossinline block: suspend GetThreadListApi.Factory.(time: Long?) -> ThreadListData): Flow<ThreadListData>(source)
批次量的通过 GetThreadListApi 查询所有结果。
Parameters
block
通过时间参数来通过 GetThreadListApi 发起一次请求
inline fun GetThreadPostApi.Factory.createFlow(channelId: String, threadId: String, order: String, postId: String? = null, time: String? = null, pageSize: String? = null, crossinline block: suspend GetThreadPostApi.Factory.(page: String) -> ListData<Post>): Flow<ListData<Post>>(source)
批次量的通过 GetThreadPostApi 查询所有结果直至最后一次响应的页码达到最大值。
Parameters
block
通过页码参数来通过 GetThreadPostApi 发起一次请求