Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
feat: Rename GofileClient#setOpion argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sya-ri authored Nov 11, 2023
1 parent 2fcfa4c commit 99743ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commonMain/kotlin/dev/s7a/gofile/GofileClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<Unit> {
return request(GofileRequest.SetOption(folderId, option, token))
public suspend fun setOption(contentId: String, option: GofileOption, token: String): Result<Unit> {
return request(GofileRequest.SetOption(contentId, option, token))
}

/**
Expand Down

0 comments on commit 99743ea

Please sign in to comment.