Bimba.git

ref: 8693f82819b7dc79e894edcff7d67d69c7f68b2b

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


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
// 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.ChangeOptionV1
import xyz.apiote.bimba.czwek.api.ChangeOptionV2

@Parcelize
data class ChangeOption(val line: LineStub, val headsigns: List<String>): Parcelable {
	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)
}