Skip to content

Commit

Permalink
feat: Add authorEmailToken
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Dec 12, 2024
1 parent a281760 commit cde3879
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface UploadSession {
val uuid: String
val duration: ValidityPeriod get() = ValidityPeriod.THIRTY
val authorEmail: String
val authorEmailToken: String?
val password: String
val message: String
val numberOfDownload: DownloadLimit get() = DownloadLimit.TWO_HUNDRED_FIFTY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import com.infomaniak.multiplatform_swisstransfer.common.models.ValidityPeriod
data class NewUploadSession(
override val duration: ValidityPeriod,
override val authorEmail: String,
override val authorEmailToken: String?,
override val password: String,
override val message: String,
override val numberOfDownload: DownloadLimit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import kotlinx.serialization.json.Json
class InitUploadBody(
val duration: String = "",
val authorEmail: String = "",
val authorEmailToken: String? = null,
val password: String = "",
val message: String = "",
val sizeOfUpload: Long = 0L,
Expand All @@ -43,6 +44,7 @@ class InitUploadBody(
constructor(uploadSession: UploadSession, recaptcha: String) : this(
duration = uploadSession.duration.value.toString(),
authorEmail = uploadSession.authorEmail,
authorEmailToken = uploadSession.authorEmailToken,
password = uploadSession.password,
message = uploadSession.message,
sizeOfUpload = uploadSession.files.sumOf { it.size },
Expand Down

0 comments on commit cde3879

Please sign in to comment.