This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
97 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/commonMain/kotlin/dev/s7a/gofile/GofileCreateFolderResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package dev.s7a.gofile | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* @property id An id of the created folder. | ||
* @property type Content type. | ||
* @property name A name of the created folder. | ||
* @property parentFolder The parent folder id of the created folder. | ||
* @property createTime Creation time. | ||
* @property childs Files and folders the folder. | ||
* @property code A code to open the folder. | ||
*/ | ||
@Serializable | ||
data class GofileCreateFolderResponse( | ||
val id: String, | ||
val type: GofileContentType, | ||
val name: String, | ||
val parentFolder: String, | ||
val createTime: Long, | ||
val childs: List<String>, | ||
val code: String | ||
) |
33 changes: 33 additions & 0 deletions
33
src/commonMain/kotlin/dev/s7a/gofile/GofileGetAccountDetailsResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package dev.s7a.gofile | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* **The statistics are updated every 24 hours.** | ||
* | ||
* @property token The access token of an account. | ||
* @property email The email of an account. | ||
* @property tier The tier of an account. | ||
* @property tierAmount Dollars paid monthly. | ||
* @property rootFolder The root folder id. | ||
* @property filesCount A number of files. | ||
* @property filesCountLimit Limit of [filesCount]. | ||
* @property totalSize A size of all files. | ||
* @property totalSizeLimit Limit of [totalSize]. | ||
* @property total30DDLTraffic DDL traffic increases when someone downloads your content through a direct link. It is counted for the last 30 days. Downloads from the website are unlimited. | ||
* @property total30DDLTrafficLimit Limit of [total30DDLTraffic]. | ||
*/ | ||
@Serializable | ||
data class GofileGetAccountDetailsResponse( | ||
val token: String, | ||
val email: String, | ||
val tier: GofileTier, | ||
val tierAmount: Int? = null, | ||
val rootFolder: String, | ||
val filesCount: Int, | ||
val filesCountLimit: Int?, | ||
val totalSize: Double, | ||
val totalSizeLimit: Double?, | ||
val total30DDLTraffic: Double, | ||
val total30DDLTrafficLimit: Double? | ||
) |
9 changes: 9 additions & 0 deletions
9
src/commonMain/kotlin/dev/s7a/gofile/GofileGetServerResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package dev.s7a.gofile | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* @property server The best server available to receive files. | ||
*/ | ||
@Serializable | ||
data class GofileGetServerResponse(val server: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/commonMain/kotlin/dev/s7a/gofile/GofileUploadFileResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package dev.s7a.gofile | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* @property downloadPage A url to download the uploaded file. | ||
* @property code A code to download the uploaded file. | ||
* @property parentFolder The parent folder id of the uploaded file. | ||
* @property fileId A id of the uploaded file. | ||
* @property fileName A name of the upload file. | ||
* @property md5 A checksum of the uploaded file. | ||
* @property guestToken If you don't specify a token in the request, Gofile.io will create a guest token. | ||
*/ | ||
@Serializable | ||
data class GofileUploadFileResponse( | ||
val downloadPage: String, | ||
val code: String, | ||
val parentFolder: String, | ||
val fileId: String, | ||
val fileName: String, | ||
val md5: String, | ||
val guestToken: String? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters