From: David ‘Bombe’ Roden Date: Thu, 25 Oct 2018 19:58:31 +0000 (+0200) Subject: Replace InsertionDelayChangedEvent with Kotlin version X-Git-Tag: v79^2~120 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a97bd2a5a5d804d53f9fdf4ff3afa985b6eae2fb;p=Sone.git Replace InsertionDelayChangedEvent with Kotlin version --- diff --git a/src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java b/src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java deleted file mode 100644 index 747093c..0000000 --- a/src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -package net.pterodactylus.sone.core.event; - -import com.google.common.eventbus.EventBus; - -/** - * Notifies interested {@link EventBus} clients that the Sone insertion delay - * has changed. - */ -public class InsertionDelayChangedEvent { - - private final int insertionDelay; - - public InsertionDelayChangedEvent(int insertionDelay) { - this.insertionDelay = insertionDelay; - } - - public int getInsertionDelay() { - return insertionDelay; - } - -} diff --git a/src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt b/src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt new file mode 100644 index 0000000..b2909f2 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt @@ -0,0 +1,3 @@ +package net.pterodactylus.sone.core.event + +data class InsertionDelayChangedEvent(val insertionDelay: Int)