From f845483a1747396dd5c96b501b9e429e34697eaf Mon Sep 17 00:00:00 2001 From: Matt King Date: Sun, 28 Jul 2024 15:37:49 +0100 Subject: [PATCH] Make ZplYesNo internal --- src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt | 2 +- src/main/kotlin/info/mking/k2zpl/command/options/ZplYesNo.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt b/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt index 77ebf88..53ffc21 100644 --- a/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt +++ b/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt @@ -248,7 +248,7 @@ fun ZplBuilder.field(x: Int, y: Int, font: ZplFont, fontHeight: Int, fontWidth: addField(x, y, font, fontHeight, fontWidth, data) } -fun Boolean.toZplYesNo(): ZplYesNo = when(this) { +internal fun Boolean.toZplYesNo(): ZplYesNo = when(this) { true -> ZplYesNo.YES else -> ZplYesNo.NO } \ No newline at end of file diff --git a/src/main/kotlin/info/mking/k2zpl/command/options/ZplYesNo.kt b/src/main/kotlin/info/mking/k2zpl/command/options/ZplYesNo.kt index 15f71f2..5f2aa26 100644 --- a/src/main/kotlin/info/mking/k2zpl/command/options/ZplYesNo.kt +++ b/src/main/kotlin/info/mking/k2zpl/command/options/ZplYesNo.kt @@ -1,6 +1,6 @@ package info.mking.k2zpl.command.options -enum class ZplYesNo(val value: String) { +internal enum class ZplYesNo(val value: String) { YES("Y"), NO("N");