Bimba.git

ref: 8693f82819b7dc79e894edcff7d67d69c7f68b2b

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


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

package xyz.apiote.bimba.czwek.repo

import android.content.Context
import android.graphics.drawable.Drawable
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import xyz.apiote.bimba.czwek.api.StopStub

@Parcelize
data class StopStub(val name: String, val nodeName: String, val code: String, val zone: String, val onDemand: Boolean) :
	Parcelable, StopAbstract {
	constructor(stopStub: StopStub) : this(
		stopStub.name,
		stopStub.nodeName,
		stopStub.code,
		stopStub.zone,
		stopStub.onDemand
	)
	fun icon(context: Context, scale: Float = 1f): Drawable {
		return super.icon(context, nodeName, scale)
	}
}