All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.serpro69.kfaker.provider.KamenRider.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0-rc.7
Show newest version
@file:Suppress("unused")

package io.github.serpro69.kfaker.provider

import io.github.serpro69.kfaker.*
import io.github.serpro69.kfaker.dictionary.*
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate

/**
 * [FakeDataProvider] implementation for [YamlCategory.KAMEN_RIDER] category.
 */
class KamenRider internal constructor(fakerService: FakerService) :
    YamlFakeDataProvider(fakerService) {
    override val yamlCategory = YamlCategory.KAMEN_RIDER
    override val localUniqueDataProvider = LocalUniqueDataProvider()
    override val unique by UniqueProviderDelegate(localUniqueDataProvider)

    init {
        fakerService.load(yamlCategory)
    }

    val showa = KamenRiderShowa(fakerService)
    val heisei = KamenRiderHeisei(fakerService)
    val reiwa = KamenRiderReiwa(fakerService)
}

class KamenRiderShowa internal constructor(fakerService: FakerService) :
    YamlFakeDataProvider(fakerService) {
    override val yamlCategory = YamlCategory.KAMEN_RIDER
    override val localUniqueDataProvider = LocalUniqueDataProvider()
    override val unique by UniqueProviderDelegate(localUniqueDataProvider)

    init {
        fakerService.load(yamlCategory)
    }

    fun series(): String = resolve("showa", "series")
    fun kamenRiders(): String = resolve("showa", "kamen_riders")
    fun users(): String = resolve("showa", "users")
    fun transformationDevices(): String = resolve("showa", "transformation_devices")
}

class KamenRiderHeisei internal constructor(fakerService: FakerService) :
    YamlFakeDataProvider(fakerService) {
    override val yamlCategory = YamlCategory.KAMEN_RIDER
    override val localUniqueDataProvider = LocalUniqueDataProvider()
    override val unique by UniqueProviderDelegate(localUniqueDataProvider)

    init {
        fakerService.load(yamlCategory)
    }

    fun series(): String = resolve("heisei", "series")
    fun kamenRiders(): String = resolve("heisei", "kamen_riders")
    fun users(): String = resolve("heisei", "users")
    fun collectibleDevices(): String = resolve("heisei", "collectible_devices")
    fun transformationDevices(): String = resolve("heisei", "transformation_devices")
}

class KamenRiderReiwa internal constructor(fakerService: FakerService) :
    YamlFakeDataProvider(fakerService) {
    override val yamlCategory = YamlCategory.KAMEN_RIDER
    override val localUniqueDataProvider = LocalUniqueDataProvider()
    override val unique by UniqueProviderDelegate(localUniqueDataProvider)

    init {
        fakerService.load(yamlCategory)
    }

    fun series(): String = resolve("reiwa", "series")
    fun kamenRiders(): String = resolve("reiwa", "kamen_riders")
    fun users(): String = resolve("reiwa", "users")
    fun collectibleDevices(): String = resolve("reiwa", "collectible_devices")
    fun transformationDevices(): String = resolve("reiwa", "transformation_devices")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy