ChannelListRequest

class ChannelListRequest(guildId: ID, page: Int? = null, pageSize: Int? = null, type: Int? = null) : KookGetRequest<KookApiResult.ListData<ChannelInfo>>

获取频道列表

request method: GET

Constructors

Link copied to clipboard
fun ChannelListRequest(guildId: ID, page: Int? = null, pageSize: Int? = null, type: Int? = null)

Types

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun request(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON, postChecker: suspend (HttpResponse) -> Unit = {}): ApiResult

通过 client 执行网络请求并尝试得到结果。

Link copied to clipboard
open fun requestBlocking(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON, postChecker: Consumer<HttpResponse> = defaultRequestPostChecker): ApiResult

通过 client 执行网络请求并尝试得到结果。

Link copied to clipboard
open suspend override fun requestData(client: HttpClient, authorization: String, decoder: Json): KookApiResult.ListData<ChannelInfo>

通过 client 执行网络请求并尝试得到结果。

Link copied to clipboard
open fun requestDataBlocking(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON): KookApiResult.ListData<ChannelInfo>

通过 client 执行网络请求并尝试得到结果。

Properties

Link copied to clipboard
open override val method: HttpMethod

此请求的 method.

Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<out KookApiResult.ListData<ChannelInfo>>

得到响应值的反序列化器.

Link copied to clipboard
open override val url: Url

通过 apiPathsbuildParameters 懒构建 url 属性。