ref: 69173a3d7b96203c44ff3114a13da1feed7eccfc
app/src/main/java/xyz/apiote/bimba/czwek/repo/ChangeOption.kt
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// SPDX-FileCopyrightText: Adam Evyčędo // // SPDX-License-Identifier: GPL-3.0-or-later package xyz.apiote.bimba.czwek.repo import xyz.apiote.bimba.czwek.api.ChangeOptionV1 import xyz.apiote.bimba.czwek.api.ChangeOptionV2 data class ChangeOption(val line: LineStub, val headsigns: List<String>) { constructor(c: ChangeOptionV1) : this(LineStub(c.line, LineType.UNKNOWN, Colour(0u,0u,0u)), listOf(c.headsign)) constructor(c: ChangeOptionV2) : this(LineStub(c.line), c.headsigns) } |