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
16 changed files
with
365 additions
and
297 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
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
17 changes: 5 additions & 12 deletions
17
domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/model/feature/schedule/Schedule.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,27 +1,20 @@ | ||
package ac.dnd.bookkeeping.android.domain.model.feature.schedule | ||
|
||
import ac.dnd.bookkeeping.android.domain.model.feature.relation.RelationSimple | ||
import kotlinx.datetime.LocalDate | ||
import kotlinx.datetime.LocalDateTime | ||
import kotlinx.datetime.LocalTime | ||
|
||
data class Schedule( | ||
val id: Long, | ||
val relation: ScheduleRelation, | ||
val relation: RelationSimple, | ||
val day: LocalDate, | ||
val event: String, | ||
val repeatType: AlarmRepeatType?, | ||
val repeatFinish: LocalDate?, | ||
val alarm: LocalDateTime?, | ||
val time: LocalTime?, | ||
val link: String, | ||
val location: String, | ||
val memo: String | ||
) | ||
|
||
data class ScheduleRelation( | ||
val id: Long, | ||
val name: String, | ||
val group: ScheduleRelationGroup | ||
) | ||
|
||
data class ScheduleRelationGroup( | ||
val id: Long, | ||
val name: String | ||
) |
17 changes: 17 additions & 0 deletions
17
...n/kotlin/ac/dnd/bookkeeping/android/domain/usecase/feature/schedule/GetScheduleUseCase.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ac.dnd.bookkeeping.android.domain.usecase.feature.schedule | ||
|
||
import ac.dnd.bookkeeping.android.domain.model.feature.schedule.Schedule | ||
import ac.dnd.bookkeeping.android.domain.repository.ScheduleRepository | ||
import javax.inject.Inject | ||
|
||
class GetScheduleUseCase @Inject constructor( | ||
private val scheduleRepository: ScheduleRepository | ||
) { | ||
suspend operator fun invoke( | ||
id: Long | ||
): Result<Schedule> { | ||
return scheduleRepository.getSchedule( | ||
id = id | ||
) | ||
} | ||
} |
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.