Replace most parts with Kotlin equivalents
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / text / SonePart.kt
diff --git a/src/main/kotlin/net/pterodactylus/sone/text/SonePart.kt b/src/main/kotlin/net/pterodactylus/sone/text/SonePart.kt
new file mode 100644 (file)
index 0000000..fd22474
--- /dev/null
@@ -0,0 +1,13 @@
+package net.pterodactylus.sone.text
+
+import net.pterodactylus.sone.data.Sone
+import net.pterodactylus.sone.template.SoneAccessor
+
+/**
+ * [Part] implementation that stores a reference to a [Sone].
+ */
+data class SonePart(val sone: Sone) : Part {
+
+       override val text: String = SoneAccessor.getNiceName(sone)
+
+}