package com.aletheia.app.data

sealed class Result<out T> {
    data class Success<T>(val value: T) : Result<T>()
    data class Failure(val message: String, val throwable: Throwable? = null) : Result<Nothing>()

    val isSuccess: Boolean
        get() = this is Success<T>
}
