feat: ETA
This commit is contained in:
parent
028f1b6082
commit
c329cffeb7
5 changed files with 77 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue