Skip to content

Commit

Permalink
refactor: Replace var to val
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Oct 15, 2024
1 parent 75a957d commit 13f9fe7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
package com.infomaniak.multiplatform_swisstransfer.common.interfaces.transfers

interface Container<F : List<File>> {
var uuid: String
var duration: Long
var createdDateTimestamp: Long
var expiredDateTimestamp: Long
var numberOfFiles: Int
var message: String?
var needPassword: Boolean
var language: String
var sizeUploaded: Long
var deletedDateTimestamp: Long?
var swiftVersion: Int
var downloadLimit: Int
var source: String
val uuid: String
val duration: Long
val createdDateTimestamp: Long
val expiredDateTimestamp: Long
val numberOfFiles: Int
val message: String?
val needPassword: Boolean
val language: String
val sizeUploaded: Long
val deletedDateTimestamp: Long?
val swiftVersion: Int
val downloadLimit: Int
val source: String
// @SerialName("WSUser") // TODO: What's this ?
// val wsUser: JsonElement?
var files: F
val files: F
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
package com.infomaniak.multiplatform_swisstransfer.common.interfaces.transfers

interface File {
var containerUuid: String
var uuid: String
var fileName: String
var fileSizeInBytes: Long
var downloadCounter: Int
var createdDateTimestamp: Long
var expiredDateTimestamp: Long
var eVirus: String
var deletedDate: String?
var mimeType: String
var receivedSizeInBytes: Long
var path: String?
var thumbnailPath: String?
val containerUuid: String
val uuid: String
val fileName: String
val fileSizeInBytes: Long
val downloadCounter: Int
val createdDateTimestamp: Long
val expiredDateTimestamp: Long
val eVirus: String
val deletedDate: String?
val mimeType: String
val receivedSizeInBytes: Long
val path: String?
val thumbnailPath: String?
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
package com.infomaniak.multiplatform_swisstransfer.common.interfaces.transfers

interface Transfer<ContainerType> {
var linkUuid: String
var containerUuid: String
var downloadCounterCredit: Int
var createdDateTimestamp: Long
var expiredDateTimestamp: Long
var hasBeenDownloadedOneTime: Boolean
var isMailSent: Boolean
var downloadHost: String
var container: ContainerType
val linkUuid: String
val containerUuid: String
val downloadCounterCredit: Int
val createdDateTimestamp: Long
val expiredDateTimestamp: Long
val hasBeenDownloadedOneTime: Boolean
val isMailSent: Boolean
val downloadHost: String
val container: ContainerType
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package com.infomaniak.multiplatform_swisstransfer.common.interfaces.upload

interface InitUploadResponse<C : UploadContainer> {
var container: C
var uploadHost: String
var filesUuid: List<String>
val container: C
val uploadHost: String
val filesUuid: List<String>
}

0 comments on commit 13f9fe7

Please sign in to comment.