Bimba.git

ref: e4d7079147c16b0d67cd39e35f5d943644d24c68

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