Merge pull request #3004 from kiwix/Issue#3003

Convert NetworkLanguageSpec.java into kotlin
This commit is contained in:
Kelson 2022-09-07 07:19:01 +02:00 committed by GitHub
commit a469ff3d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,14 +15,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
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") @TableModelSpec(className = "NetworkLanguageDatabaseEntity", tableName = "networkLanguages")
public class NetworkLanguageSpec { class NetworkLanguageSpec {
public String languageISO3; var languageISO3: String? = null
public boolean enabled; var enabled = false
public int numberOfOccurences; var numberOfOccurences = 0
} }