From 99743eaa026042d6611dd33352e0062852961706 Mon Sep 17 00:00:00 2001 From: sya-ri Date: Sat, 11 Nov 2023 10:01:02 +0900 Subject: [PATCH] feat: Rename GofileClient#setOpion argument --- src/commonMain/kotlin/dev/s7a/gofile/GofileClient.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commonMain/kotlin/dev/s7a/gofile/GofileClient.kt b/src/commonMain/kotlin/dev/s7a/gofile/GofileClient.kt index c6bc8c6..e91efcc 100644 --- a/src/commonMain/kotlin/dev/s7a/gofile/GofileClient.kt +++ b/src/commonMain/kotlin/dev/s7a/gofile/GofileClient.kt @@ -127,16 +127,16 @@ public class GofileClient(private val client: HttpClient) { } /** - * Set an option on a folder. + * Set an option on a folder or file. * * `https://api.gofile.io/setOption` * - * @param folderId The folder ID. + * @param contentId The contet ID. * @param option The option. * @param token The access token of an account. Can be retrieved from the profile page. */ - public suspend fun setOption(folderId: String, option: GofileOption, token: String): Result { - return request(GofileRequest.SetOption(folderId, option, token)) + public suspend fun setOption(contentId: String, option: GofileOption, token: String): Result { + return request(GofileRequest.SetOption(contentId, option, token)) } /**