Server/src/main/kotlin/dev/fyloz/backup/dtos/BackupResponses.kt
2022-08-17 10:32:12 -04:00

21 lines
458 B
Kotlin

package dev.fyloz.backup.dtos
import dev.fyloz.backup.entities.BackupFile
import kotlinx.serialization.Serializable
@Serializable
data class CreateBackupResponse(
val id: String,
val machineId: String
)
@Serializable
data class UploadFileResponse(
val id: String,
val name: String,
val path: String,
val murmur3Hash: String
) {
constructor(file: BackupFile) : this(file.id.toString(), file.name, file.path, file.murmur3Hash)
}