createItemFlow

inline fun GetThreadListApi.Factory.createItemFlow(channelId: String, categoryId: String? = null, sort: Int? = null, pageSize: Int? = null, crossinline block: suspend GetThreadListApi.Factory.(time: Long?) -> ThreadListData): Flow<ThreadView>(source)

批次量的通过 GetThreadListApi 查询所有结果,返回单个帖子的流。

Parameters

block

通过时间参数来通过 GetThreadListApi 发起一次请求


inline fun GetThreadPostApi.Factory.createItemFlow(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<Post>(source)

批次量的通过 GetThreadPostApi 查询所有结果,返回单个回复的流。

Parameters

block

通过页码参数来通过 GetThreadPostApi 发起一次请求