IntimacyUpdateRequest

class IntimacyUpdateRequest @JvmOverloads constructor(userId: ID, score: Int? = null, socialInfo: String? = null, imgId: ID? = null) : KookPostRequest<Unit>

更新用户亲密度

/api/v3/intimacy/update

method POST

Constructors

Link copied to clipboard
fun IntimacyUpdateRequest(userId: ID, score: Int? = null, socialInfo: String? = null, imgId: ID? = 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 fun requestData(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON)

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

Link copied to clipboard
open fun requestDataBlocking(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON)

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

Properties

Link copied to clipboard
open val body: Any?

可以提供一个body实例。

Link copied to clipboard
open override val method: HttpMethod

此请求的 method.

Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<out Unit>

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

Link copied to clipboard
open override val url: Url

通过 apiPathsbuildParameters 懒构建 url 属性。