From 9816a68a20cb71d9407082708b6e8252318c9989 Mon Sep 17 00:00:00 2001 From: MohitMali Date: Wed, 31 Aug 2022 16:29:35 +0530 Subject: [PATCH] Convert NetworkLanguageSpec.java into kotlin --- ...workLanguageSpec.java => NetworkLanguageSpec.kt} | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/{NetworkLanguageSpec.java => NetworkLanguageSpec.kt} (77%) diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/NetworkLanguageSpec.java b/core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/NetworkLanguageSpec.kt similarity index 77% rename from core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/NetworkLanguageSpec.java rename to core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/NetworkLanguageSpec.kt index 7b53722fa..0f49a4a2b 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/NetworkLanguageSpec.java +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/data/local/entity/NetworkLanguageSpec.kt @@ -15,14 +15,13 @@ * along with this program. If not, see . * */ +package org.kiwix.kiwixmobile.core.data.local.entity -package org.kiwix.kiwixmobile.core.data.local.entity; - -import com.yahoo.squidb.annotations.TableModelSpec; +import com.yahoo.squidb.annotations.TableModelSpec @TableModelSpec(className = "NetworkLanguageDatabaseEntity", tableName = "networkLanguages") -public class NetworkLanguageSpec { - public String languageISO3; - public boolean enabled; - public int numberOfOccurences; +class NetworkLanguageSpec { + var languageISO3: String? = null + var enabled = false + var numberOfOccurences = 0 }