Bimba.git

ref: 7a1f29c024a31360e8b3e4d40df4cfed55ae9d15

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)
}