Bimba.git

ref: 73cee3f10cf4b89f2e742db807d8f12bf4484548

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


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
package xyz.apiote.bimba.czwek.repo

import android.content.Context
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable

data class Line(
	val colour: Colour,
	val type: LineType,
	val headsignsThere: List<String>,
	val headsignsBack: List<String>,
	val graphThere: LineGraph,
	val graphBack: LineGraph,
	val name: String
) : Queryable, LineAbstract {
	fun icon(context: Context, scale: Float = 1f): Drawable {
		return BitmapDrawable(context.resources, super.icon(context, type, colour, scale))
	}
}