generated from ajou4095/template-android
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,058 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...remote/network/model/error/RegisterReq.kt → ...twork/model/authentication/RegisterReq.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...src/main/kotlin/ac/dnd/bookkeeping/android/data/remote/network/model/group/AddGroupRes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
package ac.dnd.bookkeeping.android.data.remote.network.model.group | ||
|
||
import ac.dnd.bookkeeping.android.data.remote.mapper.DataMapper | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class AddGroupRes( | ||
@SerialName("result") | ||
val result: Long | ||
) | ||
) : DataMapper<Long> { | ||
override fun toDomain(): Long { | ||
return result | ||
} | ||
} |
17 changes: 15 additions & 2 deletions
17
...main/kotlin/ac/dnd/bookkeeping/android/data/remote/network/model/group/GetGroupListRes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
package ac.dnd.bookkeeping.android.data.remote.network.model.group | ||
|
||
import ac.dnd.bookkeeping.android.data.remote.mapper.DataMapper | ||
import ac.dnd.bookkeeping.android.domain.model.group.Group | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class GetGroupListRes( | ||
@SerialName("result") | ||
val result: List<GetGroupItemRes> | ||
) | ||
) : DataMapper<List<Group>> { | ||
override fun toDomain(): List<Group> { | ||
return result.map { it.toDomain() } | ||
} | ||
} | ||
|
||
@Serializable | ||
data class GetGroupItemRes( | ||
@SerialName("id") | ||
val id: Long, | ||
@SerialName("name") | ||
val name: String | ||
) | ||
) : DataMapper<Group> { | ||
override fun toDomain(): Group { | ||
return Group( | ||
id = id, | ||
name = name | ||
) | ||
} | ||
} |
8 changes: 7 additions & 1 deletion
8
...src/main/kotlin/ac/dnd/bookkeeping/android/data/remote/network/model/heart/AddHeartRes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package ac.dnd.bookkeeping.android.data.remote.network.model.heart | ||
|
||
import ac.dnd.bookkeeping.android.data.remote.mapper.DataMapper | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class AddHeartRes( | ||
@SerialName("result") | ||
val result: Long | ||
) | ||
) : DataMapper<Long> { | ||
override fun toDomain(): Long { | ||
return result | ||
} | ||
} | ||
|
8 changes: 7 additions & 1 deletion
8
...otlin/ac/dnd/bookkeeping/android/data/remote/network/model/heart/AddUnrecordedHeartRes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package ac.dnd.bookkeeping.android.data.remote.network.model.heart | ||
|
||
import ac.dnd.bookkeeping.android.data.remote.mapper.DataMapper | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class AddUnrecordedHeartRes( | ||
@SerialName("result") | ||
val result: Long | ||
) | ||
) : DataMapper<Long> { | ||
override fun toDomain(): Long { | ||
return result | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...in/kotlin/ac/dnd/bookkeeping/android/data/remote/network/model/member/CheckNicknameRes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
package ac.dnd.bookkeeping.android.data.remote.network.model.member | ||
|
||
import ac.dnd.bookkeeping.android.data.remote.mapper.DataMapper | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class CheckNicknameRes( | ||
@SerialName("result") | ||
val result: Boolean | ||
) | ||
) : DataMapper<Boolean> { | ||
override fun toDomain(): Boolean { | ||
return result | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
...in/kotlin/ac/dnd/bookkeeping/android/data/remote/network/model/relation/AddRelationRes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package ac.dnd.bookkeeping.android.data.remote.network.model.relation | ||
|
||
import ac.dnd.bookkeeping.android.data.remote.mapper.DataMapper | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class AddRelationRes( | ||
@SerialName("result") | ||
val result: Long | ||
) | ||
) : DataMapper<Long> { | ||
override fun toDomain(): Long { | ||
return result | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.