com.c0x12c.featureflag.result.FeatureFlagResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A module for managing feature flags
package com.c0x12c.featureflag.result
sealed class FeatureFlagResult {
data class Success(
val data: T
) : FeatureFlagResult()
sealed class Error : FeatureFlagResult() {
data class NotFound(
val message: String
) : Error()
data class GeneralError(
val message: String
) : Error()
}
}