Skip to content

Commit

Permalink
Merge pull request #74 from 2rabs/rt/refactor-schedule
Browse files Browse the repository at this point in the history
♻️ Schedule 関連のリファクタリング
  • Loading branch information
tatsutakein authored Nov 26, 2023
2 parents 0004c54 + 7a83218 commit 10ec0f2
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package club.nito.core.data

import club.nito.core.model.Order
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import club.nito.core.network.schedule.ScheduleRemoteDataSource
import co.touchlab.kermit.Logger
import kotlinx.coroutines.flow.Flow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package club.nito.core.data

import club.nito.core.model.Order
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import kotlinx.coroutines.flow.Flow
import kotlinx.datetime.Instant

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import club.nito.core.data.ScheduleRepository
import club.nito.core.data.UserRepository
import club.nito.core.domain.model.ParticipantSchedule
import club.nito.core.model.FetchMultipleContentResult
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import club.nito.core.model.UserProfile
import club.nito.core.model.participant.Participant
import club.nito.core.model.toNitoError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import club.nito.core.data.UserRepository
import club.nito.core.domain.model.ParticipantSchedule
import club.nito.core.model.FetchSingleContentResult
import club.nito.core.model.Order
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import club.nito.core.model.UserProfile
import club.nito.core.model.toNitoError
import co.touchlab.kermit.Logger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package club.nito.core.model
package club.nito.core.model.schedule

import kotlinx.datetime.Instant

/**
* スケジュールID
*/
public typealias ScheduleId = String

/**
* スケジュール
* @param id ID
Expand All @@ -12,7 +17,7 @@ import kotlinx.datetime.Instant
* @param description 説明文
*/
public data class Schedule(
val id: String,
val id: ScheduleId,
val scheduledAt: Instant,
val metAt: Instant,
val venueId: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package club.nito.core.network.schedule

import club.nito.core.model.Order
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import club.nito.core.network.schedule.model.NetworkSchedule
import club.nito.core.network.schedule.model.createFakeNetworkSchedule
import kotlinx.datetime.Clock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package club.nito.core.network.schedule

import club.nito.core.model.Order
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import kotlinx.datetime.Instant

public sealed interface ScheduleRemoteDataSource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package club.nito.core.network.schedule

import club.nito.core.model.Order
import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import club.nito.core.network.schedule.model.NetworkSchedule
import club.nito.core.network.toSupabaseOrder
import co.touchlab.kermit.Logger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package club.nito.core.network.schedule.model

import club.nito.core.model.Schedule
import club.nito.core.model.schedule.Schedule
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable
Expand Down

0 comments on commit 10ec0f2

Please sign in to comment.