-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/SOPT-all/35-COLLABORATIO…
…N-ANDROID-KORAILTALK into #23/feat-seatmap-api
- Loading branch information
Showing
35 changed files
with
2,327 additions
and
132 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
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/sopt/korailtalk/data/remote/model/response/TrainSearchResponseDto.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,27 @@ | ||
package com.sopt.korailtalk.data.remote.model.response | ||
|
||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class TrainSearchResponseDto( | ||
@SerialName("timetableId") | ||
val timetableId: Long?, | ||
@SerialName("trainName") | ||
val trainName: String, | ||
@SerialName("departureTime") | ||
val departureTime: String, | ||
@SerialName("arrivalTime") | ||
val arrivalTime: String, | ||
@SerialName("standardPrice") | ||
val standardPrice: Int, | ||
@SerialName("premiumPrice") | ||
val premiumPrice: Int, | ||
@SerialName("isStandardSold") | ||
val isStandardSold: Boolean, | ||
@SerialName("isPremiumSold") | ||
val isPremiumSold: Boolean, | ||
@SerialName("travelTime") | ||
val travelTime: Int, | ||
) |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/sopt/korailtalk/domain/model/TrainInformation.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,13 @@ | ||
package com.sopt.korailtalk.domain.model | ||
|
||
data class TrainInformation( | ||
val timetableId: Long, | ||
val trainName: String, | ||
val departureTime: String, | ||
val arrivalTime: String, | ||
val standardPrice: Int, | ||
val premiumPrice: Int, | ||
val isStandardSold: Boolean, | ||
val isPremiumSold: Boolean, | ||
val travelTime: Int, | ||
) |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/sopt/korailtalk/domain/type/CarType.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,12 @@ | ||
package com.sopt.korailtalk.domain.type | ||
|
||
enum class CarType ( | ||
val text: String, | ||
){ | ||
BASIC( | ||
text = "일반실" | ||
), | ||
SPECIAL( | ||
text = "특/우등" | ||
) | ||
} |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/sopt/korailtalk/domain/type/SearchCarType.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,27 @@ | ||
package com.sopt.korailtalk.domain.type | ||
|
||
enum class SearchCarType ( | ||
val text: String, | ||
){ | ||
BASIC( | ||
text = "일반석" | ||
), | ||
TODDLER( | ||
text = "유아동반" | ||
), | ||
WHEELCHAIR( | ||
text = "휠체어" | ||
), | ||
AUTUWHEELCHAIR( | ||
text = "전동휠체어" | ||
), | ||
SECOND_FLOOR( | ||
text = "2층석" | ||
), | ||
BICYCLE( | ||
text = "자전거" | ||
), | ||
HELPER( | ||
text = "대피도우미" | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/com/sopt/korailtalk/domain/type/SearchTrainStateType.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,7 @@ | ||
package com.sopt.korailtalk.domain.type | ||
|
||
enum class SearchTrainStateType { | ||
ACTIVE, | ||
SALE, | ||
SOLD_OUT | ||
} |
10 changes: 5 additions & 5 deletions
10
app/src/main/java/com/sopt/korailtalk/domain/type/SearchTrainType.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,18 @@ | ||
package com.sopt.korailtalk.domain.type | ||
|
||
enum class SearchTrainType ( | ||
val trainType: String, | ||
val text: String, | ||
){ | ||
ALL( | ||
trainType = "모든열차" | ||
text = "모든열차" | ||
), | ||
KTX( | ||
trainType = "KTX" | ||
text = "KTX" | ||
), | ||
ITX( | ||
trainType = "ITX" | ||
text = "ITX" | ||
), | ||
MUGUNGHWA( | ||
trainType = "무궁화" | ||
text = "무궁화" | ||
) | ||
} |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/sopt/korailtalk/domain/type/SearchWayType.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,12 @@ | ||
package com.sopt.korailtalk.domain.type | ||
|
||
enum class SearchWayType ( | ||
val text: String, | ||
){ | ||
DIRECT( | ||
text = "직통" | ||
), | ||
TRANSFER( | ||
text = "환승" | ||
) | ||
} |
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
Oops, something went wrong.