mirror of
https://github.com/openflocon/Flocon.git
synced 2026-05-02 01:50:09 +00:00
feature: Create domain (#84)
* feature: Create domain * feature: Move * feature: change package --------- Co-authored-by: TEYSSANDIER Raphael <rteyssandier@sephora.fr>
This commit is contained in:
parent
da55c9463d
commit
fff697c41a
196 changed files with 408 additions and 383 deletions
|
|
@ -12,6 +12,8 @@ kotlin {
|
|||
commonMain.dependencies {
|
||||
implementation(libs.kotlinx.coroutinesCore)
|
||||
implementation(libs.kotlinx.serializationJson)
|
||||
|
||||
implementation(projects.domain)
|
||||
}
|
||||
|
||||
commonTest.dependencies {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,17 @@
|
|||
package com.flocon.data.remote.models
|
||||
|
||||
import io.github.openflocon.domain.models.DeviceId
|
||||
import io.github.openflocon.domain.models.DeviceIdAndPackageNameDomainModel
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
// TODO Remove
|
||||
typealias DeviceId = String
|
||||
|
||||
// TODO Set internal
|
||||
@Serializable
|
||||
data class FloconDeviceIdAndPackageNameDataModel(
|
||||
val deviceId: DeviceId,
|
||||
val packageName: String,
|
||||
)
|
||||
|
||||
fun DeviceIdAndPackageNameDomainModel.toRemote() = FloconDeviceIdAndPackageNameDataModel(
|
||||
deviceId = deviceId,
|
||||
packageName = packageName,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue