Bimba.git

ref: c1db5ac8fc4a50eb6c9f311c14b04c65a2654a24

app/src/main/java/xyz/apiote/bimba/czwek/repo/LineGraph.kt


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-FileCopyrightText: Adam Evyčędo
//
// SPDX-License-Identifier: GPL-3.0-or-later

package xyz.apiote.bimba.czwek.repo

import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import xyz.apiote.bimba.czwek.api.LineGraph

@Parcelize
data class LineGraph(
	val stops: List<StopStub>,
	val nextNodes: Map<Long, List<Long>>,
) : Parcelable {
	constructor(lineGraph: LineGraph) : this(
		lineGraph.stops.map { StopStub(it) },
		lineGraph.nextNodes
	)
}