1 package net.pterodactylus.rhynodge.webpages.weather.wettercom
3 import net.pterodactylus.rhynodge.states.AbstractState
4 import java.time.ZonedDateTime
7 * Contains the state parsed from [wetter.com](https://www.wetter.com/).
9 * @author [David ‘Bombe’ Roden](mailto:bombe@pterodactylus.net)
11 class WetterComState(val dateTime: ZonedDateTime) : AbstractState(true) {
13 val hours: List<HourState> = mutableListOf()
15 fun addHour(hourState: HourState) {
16 (hours as MutableList<HourState>).add(hourState)
19 override fun equals(other: Any?): Boolean {
20 other as? WetterComState ?: return false
21 return (dateTime == other.dateTime) and (hours == other.hours)