feat: ETA

This commit is contained in:
Piotr Dec 2024-08-02 23:28:56 +02:00
parent 028f1b6082
commit c329cffeb7
Signed by: stawros
GPG key ID: F89F27AD8F881A91
5 changed files with 77 additions and 6 deletions

View file

@ -101,7 +101,24 @@ class Distance(val distance: Double, val unit: Unit) {
class Speed(val speed: Int, val limit: Int)
class Arrival(val hours: Int, val minutes: Int)
class Arrival(val hours: Int, val minutes: Int) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as Arrival
if (hours != other.hours) return false
if (minutes != other.minutes) return false
return true
}
override fun hashCode(): Int {
return 61 * hours + minutes
}
}
class Direction(
var angle: OutAngle = OutAngle.AsDirection,