commit 7ede5753f8ed594cb80ef09b28926e55ef576f63 Author: vizitor Date: Tue Apr 22 16:17:35 2025 +0300 initial commit diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..024227e --- /dev/null +++ b/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + ru.darktale + wallet + 0.0.1 + + + 1.9.0 + + + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin.version} + + + org.jetbrains.kotlin + kotlin-test + ${kotlin.version} + test + + + + + src/main/kotlin + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${kotlin.version} + + + compile + compile + + compile + + + + test-compile + test-compile + + test-compile + + + + + 17 + + + + + \ No newline at end of file diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt new file mode 100644 index 0000000..732adf1 --- /dev/null +++ b/src/main/kotlin/Main.kt @@ -0,0 +1,5 @@ +package org.example + +fun main() { + println("Hello World!") +} \ No newline at end of file diff --git a/src/main/kotlin/model/Asset.kt b/src/main/kotlin/model/Asset.kt new file mode 100644 index 0000000..9af346a --- /dev/null +++ b/src/main/kotlin/model/Asset.kt @@ -0,0 +1,14 @@ +package org.example.model + +import java.math.BigDecimal + +interface Asset { + var quantity: BigDecimal + var assetType: AssetType + var storagePlace: StoragePlace +} + +enum class AssetType { + TRADING_INSTRUMENT, + DEPOSIT; +} \ No newline at end of file diff --git a/src/main/kotlin/model/StoragePlace.kt b/src/main/kotlin/model/StoragePlace.kt new file mode 100644 index 0000000..335a251 --- /dev/null +++ b/src/main/kotlin/model/StoragePlace.kt @@ -0,0 +1,5 @@ +package org.example.model + +interface StoragePlace { + var name: String +} \ No newline at end of file