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

Commit

Permalink
feat: moved data classes to Objects.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
rafi612 committed Nov 5, 2023
1 parent 1aa6cf8 commit 296bdba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/main/kotlin/dev/medzik/librepass/desktop/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,30 +86,4 @@ object Config {
}
}

data class Credentials(
val userId: UUID,
val email: String,
val apiUrl: String? = null,
val apiKey: String,
val publicKey: String,
val lastSync: Long? = null,
// argon2id parameters
val memory: Int,
val iterations: Int,
val parallelism: Int,
)

data class UserSecrets(
val privateKey: String,
val secretKey: String
)

data class Settings(
var theme: Style
)

data class StoreCipher(
val id: UUID,
val owner: UUID,
var encryptedCipher: EncryptedCipher
)
33 changes: 33 additions & 0 deletions src/main/kotlin/dev/medzik/librepass/desktop/config/Objects.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package dev.medzik.librepass.desktop.config

import dev.medzik.librepass.desktop.style.Style
import dev.medzik.librepass.types.cipher.EncryptedCipher
import java.util.*

data class Credentials(
val userId: UUID,
val email: String,
val apiUrl: String? = null,
val apiKey: String,
val publicKey: String,
val lastSync: Long? = null,
// argon2id parameters
val memory: Int,
val iterations: Int,
val parallelism: Int,
)

data class UserSecrets(
val privateKey: String,
val secretKey: String
)

data class Settings(
var theme: Style
)

data class StoreCipher(
val id: UUID,
val owner: UUID,
var encryptedCipher: EncryptedCipher
)

0 comments on commit 296bdba

Please sign in to comment.