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

izumi.idealingua.runtime.rpc.http4s.ws.RawResponse.scala Maven / Gradle / Ivy

The newest version!
package izumi.idealingua.runtime.rpc.http4s.ws

import io.circe.Json
import izumi.idealingua.runtime.rpc.*

sealed trait RawResponse

object RawResponse {
  final case class EmptyRawResponse() extends RawResponse
  final case class GoodRawResponse(data: Json, method: IRTMethodId) extends RawResponse
  final case class BadRawResponse(data: Option[Json]) extends RawResponse {
    def error: String = data.map(_.noSpaces).getOrElse("N/A")
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy