Skip to content

Instantly share code, notes, and snippets.

@beyondxscratch
Created August 13, 2020 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyondxscratch/b10c21782bb2812caf10a4d3e44eb865 to your computer and use it in GitHub Desktop.
Save beyondxscratch/b10c21782bb2812caf10a4d3e44eb865 to your computer and use it in GitHub Desktop.
data class Search(
val id: UUID = randomUUID(),
val criteria: Criteria,
val spaceTrains: SpaceTrains,
val selection: Selection = Selection())
data class SpaceTrain(
val number: String,
val bound: Bound,
val originId: String,
val destinationId: String,
val schedule: Schedule,
val fares: Fares,
val compatibleSpaceTrains: Set<String> = emptySet())
typealias SpaceTrains = List<SpaceTrain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment