-
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
1 parent
ef161b6
commit 664dad2
Showing
4 changed files
with
153 additions
and
3 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
21 changes: 21 additions & 0 deletions
21
core/design-system/src/main/kotlin/xyz/ksharma/krail/design/system/model/JourneyLeg.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,21 @@ | ||
package xyz.ksharma.krail.design.system.model | ||
|
||
data class JourneyLeg( | ||
val transportLine: TransportModeLine, | ||
|
||
/** | ||
* Vehicle Headline | ||
* Train - City Circle via Parramatta | ||
* **/ | ||
val headline: String, | ||
|
||
/** | ||
* List of Stops with Departure Time for the Journey. | ||
*/ | ||
val stops: List<Stop>, | ||
|
||
/** | ||
* 4 Stops (12 min) etc. | ||
*/ | ||
val summary: String, | ||
) |
12 changes: 12 additions & 0 deletions
12
core/design-system/src/main/kotlin/xyz/ksharma/krail/design/system/model/Stop.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 xyz.ksharma.krail.design.system.model | ||
data class Stop( | ||
/** | ||
* E.g. TownHall Station, Platform 1 | ||
*/ | ||
val name: String, | ||
|
||
/** | ||
* Departure Time | ||
*/ | ||
val departureTime: String, | ||
) |
21 changes: 21 additions & 0 deletions
21
.../design-system/src/main/kotlin/xyz/ksharma/krail/design/system/model/TransportModeLine.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,21 @@ | ||
package xyz.ksharma.krail.design.system.model | ||
|
||
/** | ||
* Reference - https://en.wikipedia.org/wiki/Module:Adjacent_stations/Sydney_Trains | ||
*/ | ||
data class TransportModeLine( | ||
/** | ||
* Train / Bus / Ferry etc along with their color codes. | ||
*/ | ||
val transportModeType: TransportModeType, | ||
|
||
/** | ||
* Line number e.g. T1, T4, F1, F2 etc. | ||
*/ | ||
val lineName: String, | ||
|
||
/** | ||
* Hexadecimal color code for the Line number e.g. T1 is #f99d1c | ||
*/ | ||
val lineHexColorCode: String, | ||
) |