package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.data.model.TabWidget import at.hannibal2.skyhanni.utils.LorenzUtils.isAnyOf /** The events get send on change of the widget and on island switch */ open class WidgetUpdateEvent( val widget: TabWidget, val lines: List, ) : LorenzEvent() { fun isWidget(widgetType: TabWidget) = widget == widgetType fun isWidget(vararg widgetType: TabWidget) = widget.isAnyOf(*widgetType) fun isClear() = lines.isEmpty() }