Created
September 30, 2021 03:02
-
-
Save maxirosson/626a73239ab2ffe1df5b88af9e167e98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum class SampleRemoteConfigParameter constructor(private val defaultValue: Any) : RemoteConfigParameter { | |
SAMPLE_BOOLEAN_PARAMETER(true), | |
SAMPLE_STRING_PARAMETER("value1"), | |
SAMPLE_LONG_PARAMETER(5), | |
SAMPLE_DOUBLE_PARAMETER(1.2); | |
override fun getKey(): String { | |
return name.lowercase() | |
} | |
override fun getDefaultValue(): Any { | |
return defaultValue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment